Ignore:
Timestamp:
2009-11-10T20:49:48+13:00 (14 years ago)
Author:
oranfry
Message:

Since we can now have a Perl installation inside Greenstone on linux as well, GLI code for Linux also launches perl with the -S flag.

File:
1 edited

Legend:

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

    r19269 r20924  
    230230        else {
    231231        String args[];
    232         if(Utility.isWindows()) {
    233             args = new String[6];
    234             args[0] = Configuration.perl_path;
    235             args[1] = "-S";
    236             args[2] = LocalGreenstone.getBinScriptDirectoryPath() + filename;
    237             args[3] = "-xml";
    238             args[4] = "-language";
    239             args[5] = lang;
    240         }
    241         else {
    242             args = new String[4];
    243             args[0] = LocalGreenstone.getBinScriptDirectoryPath() + filename;
    244             args[1] = "-xml";
    245             args[2] = "-language";
    246             args[3] = lang;
    247         }
     232        args = new String[6];
     233        args[0] = Configuration.perl_path;
     234        args[1] = "-S";
     235        args[2] = LocalGreenstone.getBinScriptDirectoryPath() + filename;
     236        args[3] = "-xml";
     237        args[4] = "-language";
     238        args[5] = lang;
    248239
    249240
Note: See TracChangeset for help on using the changeset viewer.