Changeset 25963 for main/trunk/gli

Show
Ignore:
Timestamp:
17.07.2012 17:27:46 (8 years ago)
Author:
ak19
Message:

Kathy asked me to adjust the code used to launch pluginfo.pl from GLI to take a new cmd line option called gs_version that should be accompanied by the value 3 for gs3mode. I'm setting this flag and an appropriate value for Greenstone 2 as well. Have also updated the gliserver.pl file for RemoteGreenstone?, to similarly launch pluginfo.pl with the new gs_version flag.

Files:
1 modified

Legend:

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

    r20924 r25963  
    142142        args.add("-S"); 
    143143        args.add(LocalGreenstone.getBinScriptDirectoryPath() + "pluginfo.pl"); 
     144        args.add("-gs_version"); 
     145        if (Gatherer.GS3) { 
     146            args.add("3"); 
     147        } else { 
     148            args.add("2"); 
     149        } 
    144150        if (collection_specific) { 
    145151            args.add("-collection"); 
     
    150156        args.add(Configuration.getLanguage()); 
    151157        args.add(plugin.getName()); 
    152  
    153158        // Run the pluginfo.pl process 
    154159        Runtime runtime = Runtime.getRuntime(); 
     
    204209        args.add("-S");      
    205210        args.add(LocalGreenstone.getBinScriptDirectoryPath() + "pluginfo.pl"); 
     211        args.add("-gs_version"); 
     212        if (Gatherer.GS3) { 
     213            args.add("3"); 
     214        } else { 
     215            args.add("2"); 
     216        } 
    206217        if (collection_name != null) { 
    207218            args.add("-collection");