Changeset 7104
- Timestamp:
- 2004-03-22T13:31:35+12:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java
r7095 r7104 154 154 Gatherer.println("CollectionManager.buildCollection()"); 155 155 building = true; 156 156 String lang = Gatherer.config.getLanguage(); 157 157 String args[]; 158 158 if(Utility.isWindows()) { 159 args = new String[ 5];159 args = new String[7]; 160 160 args[0] = Gatherer.config.perl_path; 161 161 args[1] = "-S"; 162 162 args[2] = Gatherer.config.getScriptPath() + "buildcol.pl"; 163 163 args[3] = "-gli"; 164 args[4] = collection.getName(); 164 args[4] = "-language"; 165 args[5] = lang; 166 args[6] = collection.getName(); 165 167 } 166 168 else { 167 args = new String[ 3];169 args = new String[5]; 168 170 args[0] = Gatherer.config.getScriptPath() + "buildcol.pl"; 169 171 args[1] = "-gli"; 170 args[2] = collection.getName(); 172 args[2] = "-language"; 173 args[3] = lang; 174 args[4] = collection.getName(); 171 175 } 172 176 args = ArrayTools.add(args, collection.build_options.getBuildValues()); … … 694 698 } 695 699 String args[]; 700 String lang = Gatherer.config.getLanguage(); 696 701 if(Utility.isWindows()) { 697 args = new String[ 7];702 args = new String[9]; 698 703 args[0] = Gatherer.config.perl_path; 699 704 args[1] = "-S"; 700 705 args[2] = Gatherer.config.getScriptPath() + "import.pl"; 701 706 args[3] = "-gli"; 707 args[4] = "-language"; 708 args[5] = lang; 709 args[6] = "-importdir"; 710 args[7] = collection_import; 711 args[8] = collection.getName(); 712 } 713 else { 714 args = new String[7]; 715 args[0] = Gatherer.config.getScriptPath() + "import.pl"; 716 args[1] = "-gli"; 717 args[2] = "-language"; 718 args[3] = lang; 702 719 args[4] = "-importdir"; 703 720 args[5] = collection_import; 704 721 args[6] = collection.getName(); 705 }706 else {707 args = new String[5];708 args[0] = Gatherer.config.getScriptPath() + "import.pl";709 args[1] = "-gli";710 args[2] = "-importdir";711 args[3] = collection_import;712 args[4] = collection.getName();713 722 } 714 723 collection_import = null;
Note:
See TracChangeset
for help on using the changeset viewer.