Changeset 8651
- Timestamp:
- 2004-11-24T14:03:49+13:00 (19 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/GathererApplet.java
r8629 r8651 132 132 } 133 133 134 Utility.CACHE_DIR = Utility.BASE_DIR + "cache" + File.separator;135 Utility.HELP_DIR = Utility.BASE_DIR + "help" + File.separator;136 134 Utility.METADATA_DIR = Utility.BASE_DIR + "metadata" + File.separator; 137 Utility.RECYCLE = Utility.BASE_DIR + "recycle" + File.separator;138 Utility.RES_DIR = Utility.BASE_DIR + "resource" + File.separator;139 Utility.WELCOME_DIR = Utility.BASE_DIR + "welcome" + File.separator;140 135 141 136 Configuration.TEMPLATE_CONFIG_XML = "xml/configRemote.xml"; -
trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java
r8620 r8651 569 569 public String getCollectionBuild() { 570 570 if (Gatherer.GS3) { 571 return Utility.get BuildDir(Utility.getCollectionDir(Configuration.gsdl3_path, Configuration.site_name, collection.getName()));571 return Utility.getCollectionDir(Configuration.gsdl3_path, Configuration.site_name, collection.getName()) + "building" + File.separator; 572 572 } else { 573 return Utility.get BuildDir(Utility.getCollectionDir(Configuration.gsdl_path, collection.getName()));573 return Utility.getCollectionDir(Configuration.gsdl_path, collection.getName()) + "building" + File.separator; 574 574 } 575 575 } -
trunk/gli/src/org/greenstone/gatherer/file/RecycleBin.java
r8243 r8651 80 80 setOpaque(true); 81 81 82 this.model = new FileSystemModel(new FileNode(new File(Utility. RECYCLE), "Undo"));82 this.model = new FileSystemModel(new FileNode(new File(Utility.getGLIUserFolder() + "recycle" + File.separator), "Undo")); 83 83 } 84 84 -
trunk/gli/src/org/greenstone/gatherer/util/Utility.java
r8650 r8651 73 73 static public String BASE_DIR = System.getProperty("user.dir") + File.separator; 74 74 static final public String BUILD_CFG_FILENAME = "build.cfg"; 75 /** Definition of an important directory name, in this case the building directory for the collection. */76 static final public String BUILD_DIR = "building" + File.separator;77 /** Definition of an important directory name, in this case the public web cache for the Gatherer. */78 static public String CACHE_DIR = BASE_DIR + "cache" + File.separator;79 75 static final public String CFG_COLLECTIONMETA_COLLECTIONNAME = "collectionmeta\tcollectionname"; 80 76 static final public String CFG_COLLECTIONMETA_COLLECTIONEXTRA = "collectionmeta\tcollectionextra"; … … 106 102 /** The location of the default greenstone metadata file. */ 107 103 static final public String GREENSTONEDIRECTORYMETADATA_TEMPLATE = "xml/metadata.xml"; 108 /** Definition of an important directory name, in this case the private web cache directory for the collection. */109 static final public String GCACHE_DIR = "cache" + File.separator;110 104 static final public String GLI_ARCHIVE = "GLI.jar"; 111 105 static final public String GLI_EXTENSION = ".col"; 112 /** Definition of an important directory name, in this case the location of help documentation. */113 static public String HELP_DIR = BASE_DIR + "help" + File.separator;114 106 /** Definition of an important directory name, in this case the images directory for the collection. */ 115 107 static final public String IMAGES_DIR = "images" + File.separator; … … 144 136 /** The current version of the Gatherer. */ 145 137 static final public String PROGRAM_VERSION = "v2.52"; 146 /** Definition of an important directory name, in this case the location of the recycled files location. */147 static public String RECYCLE = BASE_DIR + "recycle" + File.separator;148 /** Definition of an important directory name, in this case the location of image and other resources. */149 static public String RES_DIR = BASE_DIR + "resource" + File.separator;150 /** Definition of an important directory name, in this case the location of opening (or welcome) screen html. */151 static public String WELCOME_DIR = BASE_DIR + "welcome" + File.separator;152 138 static final public String WORKSPACE_TREE = "Workspace"; 153 139 static final public String XML_DIRECTORY = "xml" + File.separator; … … 428 414 } 429 415 430 /** Method which constructs the build directory given a certain collection.431 * @param col_dir The location of the collection directory as a <strong>String</strong>.432 * @return The location of the given collections build directory, also as a <strong>String</strong>.433 */434 static public String getBuildDir(String col_dir) {435 if(col_dir == null) {436 return BASE_DIR + BUILD_DIR;437 }438 return col_dir + BUILD_DIR;439 }440 416 /** Builds the cache dir by appending the user path and 'cache'. 441 417 * @return a File representing the path to the private file cache within the current collection.
Note:
See TracChangeset
for help on using the changeset viewer.