Changeset 12810
- Timestamp:
- 2006-09-21T15:35:09+12:00 (18 years ago)
- 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 86 86 static final public int ALL = 3; 87 87 static final public int BUILDCOL = 2; 88 static final public int UPDATE_COLLECT_CFG = 1;89 88 static final public int NOTHING = 0; 90 89 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 636 636 //Only design options have changes, and we want to be smart in the way we handle them. 637 637 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. 646 640 DebugStream.println("Just want to run buildcol.pl"); 647 641 prepareForBuild(); 648 642 Gatherer.c_man.buildCollection(isIncremental()); 649 643 } 650 else if (rebuildTypeRequired == CollectionDesignManager.ALL) {651 // Do a usual build.644 else if (rebuildTypeRequired == CollectionDesignManager.ALL) { 645 // Do both import and buildcol 652 646 DebugStream.println("Want to do a complete build"); 653 647 prepareForBuild();
Note:
See TracChangeset
for help on using the changeset viewer.