Changeset 30516 for main/trunk/greenstone3/src/java/org/greenstone/gsdl3/build/GS2PerlConstructor.java
- Timestamp:
- 2016-05-09T16:11:32+12:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/build/GS2PerlConstructor.java
r29947 r30516 203 203 command.add(perlPath + "perl"); 204 204 command.add("-S"); 205 command.add(GlobalProperties.getGS2Build() + File.separator + "bin" + File.separator + "script" + File.separator + "buildcol.pl"); 205 command.add(GlobalProperties.getGS2Build() + File.separator + "bin" + File.separator + "script" + File.separator + "incremental-buildcol.pl"); 206 command.add("-incremental"); 207 command.add("-builddir"); 208 command.add(GSFile.collectDir(this.site_home) + File.separator + this.collection_name + File.separator +"index"); 206 209 command.add("-site"); 207 210 command.add(this.site_name); 208 211 command.add("-collectdir"); 209 212 command.add(GSFile.collectDir(this.site_home)); 210 command.add("-removeold"); // saves some seconds processing time when this flag's added in explicitly213 // command.add("-removeold"); // saves some seconds processing time when this flag's added in explicitly 211 214 command.addAll(extractParameters(this.process_params)); 212 215 command.add(this.collection_name); … … 228 231 // first check that we have a building directory 229 232 // (don't want to bother running activate.pl otherwise) 230 File build_dir = new File(GSFile.collection BuildDir(this.site_home, this.collection_name));233 File build_dir = new File(GSFile.collectionIndexDir(this.site_home, this.collection_name)); 231 234 if (!build_dir.exists()) 232 235 { … … 275 278 command.add("-S"); 276 279 command.add(GlobalProperties.getGS2Build() + File.separator + "bin" + File.separator + "script" + File.separator + "activate.pl"); 280 command.add("-incremental"); 281 command.add("-builddir"); 282 command.add(GSFile.collectDir(this.site_home) + File.separator + this.collection_name + File.separator +"index"); 277 283 command.add("-site"); 278 284 command.add(this.site_name); 279 285 command.add("-collectdir"); 280 286 command.add(GSFile.collectDir(this.site_home)); 281 command.add("-removeold"); // saves some seconds processing time when this flag's added in explicitly287 // command.add("-removeold"); // saves some seconds processing time when this flag's added in explicitly 282 288 command.add("-skipactivation"); // gsdl3/util/GS2Construct does the activation and reactivation 283 289 command.addAll(extractParameters(this.process_params));
Note:
See TracChangeset
for help on using the changeset viewer.