- Timestamp:
- 2004-10-07T16:44:32+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/collection/BuildOptions.java
r8015 r8231 6 6 import java.util.*; 7 7 import org.apache.xerces.parsers.DOMParser; 8 import org.greenstone.gatherer.Configuration; 8 9 import org.greenstone.gatherer.Gatherer; 9 10 import org.greenstone.gatherer.cdm.Argument; … … 45 46 public BuildOptions(Element build_values_element, Element import_values_element) { 46 47 // first check the saved arguments language 47 String interface_lang = Gatherer.config.getLanguage();48 String args_lang = Gatherer.config.getArgumentsLanguage();48 String interface_lang = Configuration.getLanguage(); 49 String args_lang = Configuration.getArgumentsLanguage(); 49 50 if (interface_lang.equals(args_lang)) { 50 51 // Try to retrieve the arguments for import and build. 51 build_arguments_element = Gatherer.config.getArguments("buildcol.pl");52 import_arguments_element = Gatherer.config.getArguments("import.pl");52 build_arguments_element = Configuration.getArguments("buildcol.pl"); 53 import_arguments_element = Configuration.getArguments("import.pl"); 53 54 } 54 55 // If that fails try to reconstruct the arguments … … 73 74 // By now we should definately have the arguments. However the reason we are here is because they are not stored in the config.xml file, to make sure they are stored now. 74 75 if (used_defaults) { 75 Gatherer.config.setArgumentsLanguage("en");76 Configuration.setArgumentsLanguage("en"); 76 77 } else { 77 Gatherer.config.setArgumentsLanguage(interface_lang);78 } 79 Gatherer.config.setArguments(build_arguments_element);80 Gatherer.config.setArguments(import_arguments_element);78 Configuration.setArgumentsLanguage(interface_lang); 79 } 80 Configuration.setArguments(build_arguments_element); 81 Configuration.setArguments(import_arguments_element); 81 82 } 82 83 else { … … 397 398 if(Utility.isWindows()) { 398 399 args = new String[6]; 399 args[0] = Gatherer.config.perl_path;400 args[0] = Configuration.perl_path; 400 401 args[1] = "-S"; 401 args[2] = Gatherer.config.getScriptPath() + filename;402 args[2] = Configuration.getScriptPath() + filename; 402 403 args[3] = "-xml"; 403 404 args[4] = "-language"; … … 406 407 else { 407 408 args = new String[4]; 408 args[0] = Gatherer.config.getScriptPath() + filename;409 args[0] = Configuration.getScriptPath() + filename; 409 410 args[1] = "-xml"; 410 411 args[2] = "-language";
Note:
See TracChangeset
for help on using the changeset viewer.