Changeset 8259


Ignore:
Timestamp:
2004-10-08T16:31:10+13:00 (20 years ago)
Author:
mdewsnip
Message:

Moved some non-applet code out of Configuration and into Gatherer. This removes another Gatherer dependency.

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

Legend:

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

    r8253 r8259  
    196196    }
    197197
    198     ///ystem.err.println("Perl path.");
    199198    this.perl_path = perl_path;
    200199    // Ensure the perl path includes exe under windoze
    201     if (!Gatherer.isGsdlRemote) {
    202         if(Utility.isWindows() && !perl_path.toLowerCase().endsWith(".exe")) {
    203         if(!perl_path.endsWith(File.separator)) {
    204             perl_path = perl_path + File.separator;
    205         }
    206         perl_path = perl_path + "perl.exe";
    207         }
     200    if (Utility.isWindows() && !perl_path.toLowerCase().endsWith(".exe")) {
     201        if (!perl_path.endsWith(File.separator)) {
     202        perl_path = perl_path + File.separator;
     203        }
     204        perl_path = perl_path + "perl.exe";
    208205    }
    209206
  • trunk/gli/src/org/greenstone/gatherer/Gatherer.java

    r8256 r8259  
    196196        // Load Config
    197197        loadConfig(gsdl_path, gsdl3_path, exec_path, perl_path, mirroring_enabled, site_name);
     198
     199        // I don't really know what this is for but I've moved it here from Configuration
     200        if (isGsdlRemote && Utility.isWindows() && perl_path != null) {
     201        if (perl_path.toLowerCase().endsWith("perl.exe")) {
     202            perl_path = perl_path.substring(0, perl_path.length() - "perl.exe".length());
     203        }
     204        if (perl_path.endsWith(File.separator)) {
     205            perl_path = perl_path.substring(0, perl_path.length() - File.separator.length());
     206        }
     207        }
    198208
    199209        // the feedback dialog has been loaded with a default locale,
Note: See TracChangeset for help on using the changeset viewer.