Ignore:
Timestamp:
2009-05-12T12:25:20+12:00 (15 years ago)
Author:
oranfry
Message:

incremental import and build now works from gli, controlled by the minimal and full build buttons

File:
1 edited

Legend:

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

    r16680 r19401  
    8080    /** A manager of configuring depositor metadata */
    8181    static public DepositorMetadataManager depositormetadata_manager;
     82
    8283    /** These mark what needs to happen when building a collection where ONLY design options have been changed.
    8384        The build requirements of the higher numbers must include doing everything from the lower numbers. */
     
    8687    static final public int NOTHING = 0;
    8788    static private int rebuildTypeRequired = NOTHING; //Rebuild type required if only design options have changed
     89
     90    /** This indicates whether a minimal or complete build is required.
     91        Minimal means do everything with the -incremental flag. Complete means do everything with -removeold */
     92    static private boolean isCompleteBuild = false;
     93
    8894
    8995    /** Constructor. Loads a certain collection configuration file, which is parsed into a DOM. This model is then registered with the command information managers, each of whom knows how to, and provides controls to, alter certain commands.
     
    202208
    203209    public static int getRebuildTypeRequired() {
    204     return rebuildTypeRequired;
    205     }
     210        return rebuildTypeRequired;
     211    }
     212
    206213    public static void resetRebuildTypeRequired() {
    207     setRebuildTypeRequired(NOTHING);
     214        setRebuildTypeRequired(NOTHING);
    208215    }
    209216    public static void setRebuildTypeRequired(int number) {
    210     rebuildTypeRequired = number;
     217        rebuildTypeRequired = number;
     218    }
     219
     220    public static boolean isCompleteBuild() {
     221        return isCompleteBuild;
     222    }
     223    public static void setCompleteBuild(boolean icb) {
     224        isCompleteBuild = icb;
    211225    }
    212226
Note: See TracChangeset for help on using the changeset viewer.