Ignore:
Timestamp:
2003-05-27T14:54:29+12:00 (21 years ago)
Author:
kjdon
Message:

added some stuff for the new log directory

File:
1 edited

Legend:

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

    r4336 r4347  
    217217                }
    218218
     219                // ACTIVE_DIR/gcache/
    219220                File gcache_dir_temp = new File(Utility.getCacheDir(a_dir)+"temp.dat");
    220221                File gcache_dir = gcache_dir_temp.getParentFile();
     
    224225                }
    225226
     227                // ACTIVE_DIR/log/
     228                File log_dir_temp = new File(Utility.getLogDir(a_dir)+"temp.dat");
     229                File log_dir = log_dir_temp.getParentFile();
     230                log_dir.mkdirs();
     231                if(progress != null) {
     232                    progress.setNote(get("Log_Created"));
     233                }
     234               
    226235                progress.setProgress(2);
    227236
     
    498507     public String getCollectionIndex() {
    499508          return Utility.getIndexDir(Utility.getCollectionDir(Gatherer.config.gsdl_path) + collection.getName() + File.separator);
     509     }
     510     /** Constructs the absolute filename of the collection log directory, which should resemble "$GSDLHOME/collect/<col_name>/log/"
     511      * @return A <strong>String</strong> containing the filename.
     512      * @see org.greenstone.gatherer.Configuration
     513      * @see org.greenstone.gatherer.Gatherer
     514      * @see org.greenstone.gatherer.collection.Collection
     515      * @see org.greenstone.gatherer.util.Utility
     516      */
     517     public String getCollectionLog() {
     518         return Utility.getLogDir(Utility.getCollectionDir(Gatherer.config.gsdl_path) + collection.getName() + File.separator);
    500519     }
    501520     /** Constructs the absolute filename of the collection metadata directory, which should resemble "$GSDLHOME/collect/&lt;col_name&gt;/metadata/"
Note: See TracChangeset for help on using the changeset viewer.