Changeset 4439


Ignore:
Timestamp:
2003-05-30T15:10:30+12:00 (21 years ago)
Author:
jmt12
Message:

Fixed incorrect use of File.separator in the path of something that will be found by the class loader.

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

Legend:

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

    r4366 r4439  
    5050                // And if that too fails, load the default argument templates
    5151        if(build_arguments_element == null || import_arguments_element == null) {
    52         Document build_document = Utility.parse("xml" + File.separator + "buildcol.xml", true);
     52        Document build_document = Utility.parse("xml/buildcol.xml", true);
    5353        build_arguments_element = build_document.getDocumentElement();
    5454        build_document = null;
    55         Document import_document = Utility.parse("xml" + File.separator + "import.xml", true);
     55        Document import_document = Utility.parse("xml/import.xml", true);
    5656        import_arguments_element = import_document.getDocumentElement();
    5757        import_document = null;
  • trunk/gli/src/org/greenstone/gatherer/collection/Collection.java

    r4366 r4439  
    8181    static final private String BUILD_CONFIG = "BuildConfig";
    8282    /** The name of the collection xml template. */
    83     static final private String COLLECTION_XML_TEMPLATE = "xml" + File.separator + "template.col";
     83    static final private String COLLECTION_XML_TEMPLATE = "xml/template.col";
    8484    /** The name of the directory mappings element. */
    8585    static final private String DIRECTORY_MAPPINGS = "DirectoryMappings";
  • trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java

    r4390 r4439  
    370370    public void createLockFile(File destination) {
    371371    try {
    372         Document default_lockfile = Utility.parse("xml" + File.separator + LOCK_FILE, true);
     372        Document default_lockfile = Utility.parse("xml/" + LOCK_FILE, true);
    373373        String user_name = System.getProperty("user.name");
    374374        Element person_element = (Element) MSMUtils.getNodeFromNamed(default_lockfile.getDocumentElement(), "User");
  • trunk/gli/src/org/greenstone/gatherer/util/Utility.java

    r4437 r4439  
    118118    static final public String METADATA_EXTRACTED = "extracted.mds";
    119119    /** The location the gatherer expects to find metadata set information. */
    120     static final public String METADATA_SET_TEMPLATE = "xml" + File.separator + "template.mds";
    121     static final public String METADATA_VALUE_TEMPLATE = "xml" + File.separator + "template.mdv";
     120    static final public String METADATA_SET_TEMPLATE = "xml/template.mds";
     121    static final public String METADATA_VALUE_TEMPLATE = "xml/template.mdv";
    122122    static final public String METADATA_XML = "metadata.xml";
    123123    static final public String NAME_ELEMENT = "Name";
Note: See TracChangeset for help on using the changeset viewer.