Changeset 8651


Ignore:
Timestamp:
2004-11-24T14:03:49+13:00 (19 years ago)
Author:
mdewsnip
Message:

Removed some dead constants and code.

Location:
trunk/gli/src/org/greenstone/gatherer
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/GathererApplet.java

    r8629 r8651  
    132132    }
    133133
    134     Utility.CACHE_DIR    = Utility.BASE_DIR + "cache"    + File.separator;
    135     Utility.HELP_DIR     = Utility.BASE_DIR + "help"     + File.separator;
    136134    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;
    140135
    141136    Configuration.TEMPLATE_CONFIG_XML = "xml/configRemote.xml";
  • trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java

    r8620 r8651  
    569569    public String getCollectionBuild() {
    570570    if (Gatherer.GS3) {
    571         return Utility.getBuildDir(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;
    572572    } else {
    573         return Utility.getBuildDir(Utility.getCollectionDir(Configuration.gsdl_path, collection.getName()));
     573        return Utility.getCollectionDir(Configuration.gsdl_path, collection.getName()) + "building" + File.separator;
    574574    }
    575575    }
  • trunk/gli/src/org/greenstone/gatherer/file/RecycleBin.java

    r8243 r8651  
    8080    setOpaque(true);
    8181
    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"));
    8383    }
    8484
  • trunk/gli/src/org/greenstone/gatherer/util/Utility.java

    r8650 r8651  
    7373    static public String BASE_DIR  = System.getProperty("user.dir") + File.separator;
    7474    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;
    7975    static final public String CFG_COLLECTIONMETA_COLLECTIONNAME = "collectionmeta\tcollectionname";
    8076    static final public String CFG_COLLECTIONMETA_COLLECTIONEXTRA = "collectionmeta\tcollectionextra";
     
    106102    /** The location of the default greenstone metadata file. */
    107103    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;
    110104    static final public String GLI_ARCHIVE = "GLI.jar";
    111105    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;
    114106    /** Definition of an important directory name, in this case the images directory for the collection. */
    115107    static final public String IMAGES_DIR = "images" + File.separator;
     
    144136    /** The current version of the Gatherer. */
    145137    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;
    152138    static final public String WORKSPACE_TREE = "Workspace";
    153139    static final public String XML_DIRECTORY = "xml" + File.separator;
     
    428414    }
    429415
    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     }
    440416    /** Builds the cache dir by appending the user path and 'cache'.
    441417     * @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.