Changeset 8259
- Timestamp:
- 2004-10-08T16:31:10+13:00 (20 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/Configuration.java
r8253 r8259 196 196 } 197 197 198 ///ystem.err.println("Perl path.");199 198 this.perl_path = perl_path; 200 199 // Ensure the perl path includes exe under windoze 201 if (!Gatherer.isGsdlRemote) { 202 if(Utility.isWindows() && !perl_path.toLowerCase().endsWith(".exe")) { 203 if(!perl_path.endsWith(File.separator)) { 204 perl_path = perl_path + File.separator; 205 } 206 perl_path = perl_path + "perl.exe"; 207 } 200 if (Utility.isWindows() && !perl_path.toLowerCase().endsWith(".exe")) { 201 if (!perl_path.endsWith(File.separator)) { 202 perl_path = perl_path + File.separator; 203 } 204 perl_path = perl_path + "perl.exe"; 208 205 } 209 206 -
trunk/gli/src/org/greenstone/gatherer/Gatherer.java
r8256 r8259 196 196 // Load Config 197 197 loadConfig(gsdl_path, gsdl3_path, exec_path, perl_path, mirroring_enabled, site_name); 198 199 // I don't really know what this is for but I've moved it here from Configuration 200 if (isGsdlRemote && Utility.isWindows() && perl_path != null) { 201 if (perl_path.toLowerCase().endsWith("perl.exe")) { 202 perl_path = perl_path.substring(0, perl_path.length() - "perl.exe".length()); 203 } 204 if (perl_path.endsWith(File.separator)) { 205 perl_path = perl_path.substring(0, perl_path.length() - File.separator.length()); 206 } 207 } 198 208 199 209 // the feedback dialog has been loaded with a default locale,
Note:
See TracChangeset
for help on using the changeset viewer.