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.

Location:
gli/trunk/src/org/greenstone/gatherer/gui
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/gui/DownloadPane.java

    r19188 r20924  
    238238        ArrayList args_list = new ArrayList();
    239239        String args[] = null;
    240         if(Utility.isWindows()) {
    241             if(Configuration.perl_path != null) {
    242             args_list.add(Configuration.perl_path);
    243             }
    244             else {
    245             args_list.add("Perl.exe");
    246             }
    247         }
     240        if(Configuration.perl_path != null) {
     241            args_list.add(Configuration.perl_path);
     242        } else if(Utility.isWindows()) {
     243            args_list.add("Perl.exe");
     244        } else {
     245            args_list.add("perl");
     246        }
     247        args_list.add("-S");
    248248        args_list.add(LocalGreenstone.getBinScriptDirectoryPath()+"downloadinfo.pl");
    249249        args_list.add("-xml");
  • gli/trunk/src/org/greenstone/gatherer/gui/ExplodeMetadataDatabasePrompt.java

    r20823 r20924  
    258258    // Generate the explode_metadata_database.pl command
    259259    ArrayList command_parts_list = new ArrayList();
    260     if (Utility.isWindows() && (!Gatherer.isGsdlRemote)) {
     260    if (!Gatherer.isGsdlRemote) {
    261261        command_parts_list.add(Configuration.perl_path);
    262262        command_parts_list.add("-S");
  • gli/trunk/src/org/greenstone/gatherer/gui/ExportAsPrompt.java

    r18412 r20924  
    440440    // Generate the export.pl command
    441441    ArrayList command_parts_list = new ArrayList();
    442     if (Utility.isWindows() && (!Gatherer.isGsdlRemote)) {
     442    if (!Gatherer.isGsdlRemote) {
    443443        command_parts_list.add(Configuration.perl_path);
    444444        command_parts_list.add("-S");
  • gli/trunk/src/org/greenstone/gatherer/gui/OpenCollectionDialog.java

    r19228 r20924  
    352352        // Generate the convert_coll_from_gs2.pl command
    353353        ArrayList command_parts_list = new ArrayList();
    354         if ((Utility.isWindows()) && (!Gatherer.isGsdlRemote)) {
     354        if (!Gatherer.isGsdlRemote) {
    355355            command_parts_list.add(Configuration.perl_path);
    356356            command_parts_list.add("-S");
  • gli/trunk/src/org/greenstone/gatherer/gui/ReplaceSrcDocWithHtmlPrompt.java

    r18645 r20924  
    260260    // Generate the replace_srcdoc_with_html.pl command
    261261    ArrayList command_parts_list = new ArrayList();
    262     if (Utility.isWindows() && (!Gatherer.isGsdlRemote)) {
     262    if (!Gatherer.isGsdlRemote) {
    263263        command_parts_list.add(Configuration.perl_path);
    264264        command_parts_list.add("-S");
  • gli/trunk/src/org/greenstone/gatherer/gui/WriteCDImagePrompt.java

    r18370 r20924  
    345345    // Generate the exportcol.pl command
    346346    ArrayList command_parts_list = new ArrayList();
    347     if (Utility.isWindows() && (!Gatherer.isGsdlRemote)) {
     347    if (!Gatherer.isGsdlRemote) {
    348348        command_parts_list.add(Configuration.perl_path);
    349349        command_parts_list.add("-S");
Note: See TracChangeset for help on using the changeset viewer.