Changeset 26573 for main


Ignore:
Timestamp:
2012-12-11T17:21:17+13:00 (11 years ago)
Author:
ak19
Message:

Related to commit revision 26567 which mandated the inclusion of the site flag (and site_name) when building scripts are run over Greenstone 3 collections. This is now passed in by GLI to those scripts.

Location:
main/trunk/gli/src/org/greenstone/gatherer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java

    r26402 r26573  
    215215    command_parts_list.add("-language");
    216216    command_parts_list.add(Configuration.getLanguage());
     217
     218    if(Gatherer.GS3) {
     219        command_parts_list.add("-site");
     220        command_parts_list.add(Configuration.site_name);
     221    }
     222
    217223    if(!Gatherer.isGsdlRemote) {
    218224        command_parts_list.add("-collectdir");
     
    264270    import_list.add("-language");
    265271    import_list.add(Configuration.getLanguage());
     272
     273    if(Gatherer.GS3) {
     274        import_list.add("-site");
     275        import_list.add(Configuration.site_name);
     276    }
     277   
    266278    if(!Gatherer.isGsdlRemote) {
    267279        import_list.add("-collectdir");
     
    306318    build_list.add("-language");
    307319    build_list.add(Configuration.getLanguage());
     320
     321    if(Gatherer.GS3) {
     322        build_list.add("-site");
     323        build_list.add(Configuration.site_name);
     324    }
     325
    308326    if(!Gatherer.isGsdlRemote) {
    309327        build_list.add("-collectdir");
     
    452470//  }
    453471//  command_parts_list.add(Configuration.getGS3ScriptPath() + "convert_coll_from_gs2.pl");
     472//
     473//  command_parts_list.add("-site");
     474//  command_parts_list.add(Configuration.site_name);
     475//
    454476//  command_parts_list.add("-collectdir");
    455477//  command_parts_list.add(getCollectDirectory());
     
    852874        command_parts_list.add("-language");
    853875        command_parts_list.add(Configuration.getLanguage());
     876       
     877        if(Gatherer.GS3) {
     878        command_parts_list.add("-site");
     879        command_parts_list.add(Configuration.site_name);
     880        }
     881
    854882        if(!Gatherer.isGsdlRemote) {
    855883        command_parts_list.add("-collectdir");
     
    11661194    command_parts_list.add("-language");
    11671195    command_parts_list.add(Configuration.getLanguage());
     1196
     1197    if(Gatherer.GS3) {
     1198        command_parts_list.add("-site");
     1199        command_parts_list.add(Configuration.site_name);
     1200    }
     1201
    11681202    if(!Gatherer.isGsdlRemote) {
    11691203        command_parts_list.add("-collectdir");
     
    15861620    if(Gatherer.GS3) {
    15871621        command_parts_list.add(Utility.GS3MODE_ARGUMENT); // add '-gs3mode'
    1588     }
     1622        command_parts_list.add("-site");
     1623        command_parts_list.add(Configuration.site_name);
     1624    }
     1625
    15891626    if(!Gatherer.isGsdlRemote) {
    15901627        command_parts_list.add("-collectdir");
  • main/trunk/gli/src/org/greenstone/gatherer/gui/ExportAsPrompt.java

    r22848 r26573  
    453453    // we want to be able to export items from other collect directories too
    454454    String collectDir = Gatherer.getCollectDirectoryPath();
     455
     456    if(Gatherer.GS3) {
     457        command_parts_list.add("-site");
     458        command_parts_list.add(Configuration.site_name);
     459    }
     460
    455461    if(collectDir != Gatherer.getDefaultGSCollectDirectoryPath(true)) {
    456462        command_parts_list.add("-collectdir");
Note: See TracChangeset for help on using the changeset viewer.