Changeset 10364
- Timestamp:
- 2005-08-01T11:50:28+12:00 (19 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/Gatherer.java
r10363 r10364 308 308 // If the WGet path hasn't been specified by the user, try the Greenstone one 309 309 if (wget_path == null) { 310 File wget_file = new File(Utility.getWGetPath(gsdl_path)); 311 if (wget_file.exists()) { 312 wget_path = Utility.getWGetPath(gsdl_path); 310 String wget_file_path = gsdl_path + "bin" + File.separator; 311 if (Utility.isWindows()) { 312 wget_file_path += "windows" + File.separator + "wget.exe"; 313 } 314 else if (Utility.isMac()) { 315 wget_file_path += "darwin" + File.separator + "wget"; 316 } 317 else { 318 wget_file_path += "linux" + File.separator + "wget"; 319 } 320 if (new File(wget_file_path).exists()) { 321 wget_path = wget_file_path; 313 322 } 314 323 } -
trunk/gli/src/org/greenstone/gatherer/util/Utility.java
r10363 r10364 358 358 359 359 360 /** returns the path to the greenstone version of wget */361 static public String getWGetPath(String gsdl_path)362 {363 if (isWindows()) {364 return gsdl_path + "bin" + File.separator + "windows" + File.separator + "wget.exe";365 }366 else if (isMac()) {367 return gsdl_path + "bin" + File.separator + "darwin" + File.separator + "wget";368 }369 else {370 return gsdl_path + "bin" + File.separator + "linux" + File.separator + "wget";371 }372 }373 374 375 360 /** Method to determine if the host system is MacOS based. 376 361 * @return a boolean which is true if the platform is MacOS, false otherwise
Note:
See TracChangeset
for help on using the changeset viewer.