Ignore:
Timestamp:
2004-05-05T15:14:48+12:00 (20 years ago)
Author:
kjdon
Message:

tidied up some stuff to do with creating BasicCollectionConfigurations - now check for the existence of the config file before creation. and other bits

File:
1 edited

Legend:

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

    r7275 r7281  
    269269    if(children == null) {
    270270        children = new ArrayList();
    271         // Super Special Case: if the name of this node is the Tree.World string, then we actually map the collections installed in greenstone. The file in this case will actually by the collect directory of greenstone.
     271        // Super Special Case: if the name of this node is the Tree.World string, then we actually map the collections installed in greenstone. The file in this case will actually be the collect directory of greenstone.
    272272        if(file == null && title.equals(Dictionary.get("Tree.World"))) {
    273273        ///atherer.println("Map the 'Greenstone Collections' node.");
     
    283283            File import_dir = new File(cols[i], StaticStrings.IMPORT_FOLDER);
    284284            if(import_dir.exists()) {
     285                // we don't care if there is no config file
    285286                BasicCollectionConfiguration collect_cfg = new BasicCollectionConfiguration(new File(cols[i], Utility.CONFIG_FILE));
    286287                FileNode collection_root = new FileNode(import_dir, collect_cfg.toString(), true);
Note: See TracChangeset for help on using the changeset viewer.