Ignore:
Timestamp:
2016-05-09T16:11:32+12:00 (8 years ago)
Author:
Georgiy Litvinov
Message:

Moved to incremental rebuild in webeditor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/build/GS2PerlConstructor.java

    r29947 r30516  
    203203        command.add(perlPath + "perl");
    204204        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");
    206209        command.add("-site");
    207210        command.add(this.site_name);
    208211        command.add("-collectdir");
    209212        command.add(GSFile.collectDir(this.site_home));
    210         command.add("-removeold"); // saves some seconds processing time when this flag's added in explicitly
     213//      command.add("-removeold"); // saves some seconds processing time when this flag's added in explicitly
    211214        command.addAll(extractParameters(this.process_params));
    212215        command.add(this.collection_name);
     
    228231        // first check that we have a building directory
    229232        // (don't want to bother running activate.pl otherwise)
    230         File build_dir = new File(GSFile.collectionBuildDir(this.site_home, this.collection_name));
     233        File build_dir = new File(GSFile.collectionIndexDir(this.site_home, this.collection_name));
    231234        if (!build_dir.exists())
    232235        {
     
    275278        command.add("-S");
    276279        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");
    277283        command.add("-site");
    278284        command.add(this.site_name);
    279285        command.add("-collectdir");
    280286        command.add(GSFile.collectDir(this.site_home));
    281         command.add("-removeold"); // saves some seconds processing time when this flag's added in explicitly
     287//      command.add("-removeold"); // saves some seconds processing time when this flag's added in explicitly
    282288        command.add("-skipactivation"); // gsdl3/util/GS2Construct does the activation and reactivation
    283289        command.addAll(extractParameters(this.process_params));
Note: See TracChangeset for help on using the changeset viewer.