Changeset 7739 for trunk/gli/src/org/greenstone/gatherer/Configuration.java
- Timestamp:
- 2004-07-16T13:48:18+12:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/Configuration.java
r7696 r7739 67 67 static final private String ARGUMENT_NAME = "name"; 68 68 /** The name of the general Gatherer configuration file. */ 69 static final privateString CONFIG_XML = "config.xml";69 static public String CONFIG_XML = "config.xml"; 70 70 /** The name of the general Gatherer configuration file for running with GS3. */ 71 static final privateString GS3_CONFIG_XML = "config3.xml";71 static public String GS3_CONFIG_XML = "config3.xml"; 72 72 73 73 static final private String CURRENT_CONFIGURATION_VERSION = "2.51u"; … … 87 87 static final private String OTHER_INFO = "Info"; 88 88 /** The name of the general Gatherer configuration template. */ 89 static final privateString TEMPLATE_CONFIG_XML = "xml/config.xml";89 static public String TEMPLATE_CONFIG_XML = "xml/config.xml"; 90 90 /** The first of three patterns used during tokenization, this pattern handles a comma separated list. */ 91 91 static final private String TOKENIZER_PATTERN1 = " ,\n\t"; … … 191 191 Gatherer.println("exec_address != null -> " + exec_address); 192 192 } 193 193 194 ///ystem.err.println("Perl path."); 194 195 this.perl_path = perl_path; 195 196 // Ensure the perl path includes exe under windoze 196 if(Utility.isWindows() && !perl_path.toLowerCase().endsWith(".exe")) { 197 if(!perl_path.endsWith(File.separator)) { 198 perl_path = perl_path + File.separator; 199 } 200 perl_path = perl_path + "perl.exe"; 197 if (!Gatherer.isGsdlRemote) { 198 if(Utility.isWindows() && !perl_path.toLowerCase().endsWith(".exe")) { 199 if(!perl_path.endsWith(File.separator)) { 200 perl_path = perl_path + File.separator; 201 } 202 perl_path = perl_path + "perl.exe"; 203 } 201 204 } 202 205 … … 215 218 config_xml = new File(config_xml_name); 216 219 if(config_xml.exists()) { 217 general_config = Utility.parse(config_xml_name, false);220 general_config = Utility.parse(config_xml_name, true); 218 221 } 219 222 }
Note:
See TracChangeset
for help on using the changeset viewer.