Ignore:
Timestamp:
2003-05-27T15:15:53+12:00 (21 years ago)
Author:
jmt12
Message:

Further attempts to make GLI handle the local library - John

File:
1 edited

Legend:

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

    r4302 r4348  
    108108          if(exec_path != null && exec_path.length() > 0) {
    109109                try {
    110                      // If its missing the protocol add it now.
    111                      if(exec_path.indexOf("://") != -1) {
    112                           exec_address = new URL(exec_path);
    113                      }
    114                      else {
    115                           exec_address = new URL("http://" + exec_path);
    116                      }
     110                     exec_address = new URL(exec_path);
    117111                }
    118112                catch (MalformedURLException error) {
    119                      System.err.println("Not an address.");
     113                     ///ystem.err.println("Not an address.");
    120114                }
    121115          }
     
    129123                          exec_file = local_file;
    130124                     }
     125                     else {
     126                          ///ystem.err.println("No local library at given file path.");
     127                     }
    131128                }
    132129                // All sorts of errors might be thrown by a bogus file path.
     
    141138                     }
    142139                     else {
    143                           System.err.println("No local library.");
     140                          ///ystem.err.println("No local library.");
    144141                     }
    145142                }
    146143                // If we get to here with no exec_address nor an exec_file its just plain not going to work.
    147144          }
     145          else {
     146                ///ystem.err.println("exec_address != null -> " + exec_address);
     147          }
     148          ///ystem.err.println("Perl path.");
    148149          this.perl_path = perl_path;
    149150          // Ensure the perl path includes exe under windoze
     
    169170          // Re-establish the color settings.
    170171          updateUI();
     172
     173          System.err.println("EXEC_FILE = " + exec_file);
     174          System.err.println("EXEC_ADDRESS = " + exec_address);
    171175     }
    172176
Note: See TracChangeset for help on using the changeset viewer.