Changeset 10460
- Timestamp:
- 2005-08-10T14:14:47+12:00 (19 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java
r10456 r10460 140 140 * @see org.greenstone.gatherer.util.Utility 141 141 */ 142 public void buildCollection() { 143 DebugStream.println("CollectionManager.buildCollection()"); 142 public void buildCollection(boolean incremental_build) 143 { 144 DebugStream.println("In CollectionManager.buildCollection(), incremental_build: " + incremental_build); 144 145 building = true; 145 146 … … 156 157 command_parts_list.add("-collectdir"); 157 158 command_parts_list.add(getCollectDirectory()); 159 160 // If the user hasn't manually specified "-keepold" or "-removeold" then pick one based on incremental_build 161 if (!collection.build_options.getValueEnabled("keepold") && !collection.build_options.getValueEnabled("removeold")) { 162 command_parts_list.add(incremental_build ? "-keepold" : "-removeold"); 163 } 158 164 159 165 String[] build_options = collection.build_options.getValues(); … … 997 1003 // Finish import. 998 1004 collection.setImported(true); 999 buildCollection( );1005 buildCollection(false); 1000 1006 } 1001 1007 // If we were running a build, now is when we move files across. -
trunk/gli/src/org/greenstone/gatherer/gui/CreatePane.java
r10456 r10460 51 51 import org.greenstone.gatherer.cdm.CollectionDesignManager; 52 52 import org.greenstone.gatherer.collection.Collection; 53 import org.greenstone.gatherer.remote.RemoteGreenstoneServer;54 53 import org.greenstone.gatherer.shell.GBasicProgressMonitor; 55 54 import org.greenstone.gatherer.shell.GBuildProgressMonitor; … … 692 691 DebugStream.println("Just want to run buildcol.pl"); 693 692 prepareForBuild(); 694 Gatherer.c_man.buildCollection( );693 Gatherer.c_man.buildCollection(isIncremental()); 695 694 } 696 695 else if(rebuildTypeRequired == CollectionDesignManager.ALL) {
Note:
See TracChangeset
for help on using the changeset viewer.