Changeset 12810


Ignore:
Timestamp:
2006-09-21T15:35:09+12:00 (18 years ago)
Author:
mdewsnip
Message:

Removed the "UPDATE_COLLECT_CFG" rebuild type, as it is no longer required.

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

Legend:

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

    r12809 r12810  
    8686    static final public int ALL = 3;
    8787    static final public int BUILDCOL = 2;
    88     static final public int UPDATE_COLLECT_CFG = 1;
    8988    static final public int NOTHING = 0;
    9089    static private int rebuildTypeRequired = NOTHING; //Rebuild type required if only design options have changed
  • trunk/gli/src/org/greenstone/gatherer/gui/CreatePane.java

    r12751 r12810  
    636636        //Only design options have changes, and we want to be smart in the way we handle them.
    637637        int rebuildTypeRequired = CollectionDesignManager.getRebuildTypeRequired();
    638         if(rebuildTypeRequired == CollectionDesignManager.UPDATE_COLLECT_CFG && Gatherer.isGsdlRemote) {
    639             //Special case when the GLI is an applet: Upload the collect.cfg to server
    640             //This is already handled by CollectionDesignManager.save()
    641             DebugStream.println("Just want to upload collect.cfg, but this has already been done");
    642         }
    643         else if(rebuildTypeRequired == CollectionDesignManager.BUILDCOL) {
    644 
    645             //Just run the buildcol command.
     638        if (rebuildTypeRequired == CollectionDesignManager.BUILDCOL) {
     639            // Just run the buildcol command.
    646640            DebugStream.println("Just want to run buildcol.pl");
    647641            prepareForBuild();
    648642            Gatherer.c_man.buildCollection(isIncremental());
    649643        }
    650         else if(rebuildTypeRequired == CollectionDesignManager.ALL) {
    651             //Do a usual build.
     644        else if (rebuildTypeRequired == CollectionDesignManager.ALL) {
     645            // Do both import and buildcol
    652646            DebugStream.println("Want to do a complete build");
    653647            prepareForBuild();
Note: See TracChangeset for help on using the changeset viewer.