Changeset 10372
- Timestamp:
- 2005-08-01T13:58:47+12:00 (19 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/Gatherer.java
r10370 r10372 598 598 { 599 599 gli_user_directory_path = gli_user_directory_path_arg; 600 601 // Ensure the GLI user directory exists 602 File gli_user_directory = new File(gli_user_directory_path); 603 if (!gli_user_directory.exists() && !gli_user_directory.mkdirs()) { 604 System.err.println("Error: Unable to make directory: " + gli_user_directory); 605 } 600 606 } 601 607 -
trunk/gli/src/org/greenstone/gatherer/GathererApplet.java
r10367 r10372 107 107 Gatherer.setGLIUserDirectoryPath(gli_user_directory_path); 108 108 109 // Ensure the GLI user directory exists110 File gli_user_directory = new File(gli_user_directory_path);111 if (!gli_user_directory.exists() && !gli_user_directory.mkdirs()) {112 System.err.println("Error: Unable to make directory: " + gli_user_directory.toString());113 }114 115 109 // If we're running as an applet we don't have a local GLI, so use the user directory path as the GLI path 116 110 Gatherer.setGLIDirectoryPath(gli_user_directory_path); -
trunk/gli/src/org/greenstone/gatherer/GathererProg.java
r10362 r10372 71 71 Gatherer.setGLIUserDirectoryPath(gli_user_directory_path); 72 72 73 // Ensure the GLI user directory exists74 File gli_user_directory = new File(gli_user_directory_path);75 if (!gli_user_directory.exists() && !gli_user_directory.mkdirs()) {76 System.err.println("Error: Unable to make directory: " + gli_user_directory.toString());77 }78 79 73 // We have a local GLI 80 74 Gatherer.setGLIDirectoryPath(System.getProperty("user.dir") + File.separator);
Note:
See TracChangeset
for help on using the changeset viewer.