Changeset 22911
- Timestamp:
- 2010-09-15T18:49:33+12:00 (13 years ago)
- Location:
- main/trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/Gatherer.java
r22831 r22911 880 880 collectDir = collectDir.substring(0, collectDir.length()-1); // remove file separator at end 881 881 Utility.updatePropertyConfigFile(gsdlsitecfg, "collecthome", collectDir); 882 882 // if gsdlsite.cfg does not exist (if using server.exe for instance), the above method will just return 883 883 884 if(!Gatherer.GS3 && Gatherer.isLocalLibrary) { 884 885 // for Images in the collection to work, the apache web server -
main/trunk/gli/src/org/greenstone/gatherer/greenstone/LocalLibraryServer.java
r22806 r22911 729 729 + "cgi-bin" + File.separator + "gsdlsite.cfg"; 730 730 Utility.updatePropertyConfigFile(gsdlsitecfg, "collecthome", collectDir); // no file separator at end 731 // if gsdlsite.cfg does not exist (if using server.exe for instance), the above method will just return 731 732 } 732 733 -
main/trunk/gli/src/org/greenstone/gatherer/util/Utility.java
r22605 r22911 470 470 */ 471 471 public static void updatePropertyConfigFile(String filename, String propertyName, String propertyValue) { 472 File propFile = new File(filename); 473 if(!propFile.exists()) { 474 System.err.println("*** Unable to update property " + propertyName + " in file " 475 + filename + "to\n" + propertyValue + ". File does not exist.\n"); 476 return; 477 } 472 478 BufferedReader fin = null; 473 479 BufferedWriter fout = null;
Note:
See TracChangeset
for help on using the changeset viewer.