- Timestamp:
- 2017-05-22T16:55:02+12:00 (7 years ago)
- Location:
- main/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/util/SafeProcess.java
r31692 r31697 22 22 23 23 import java.lang.reflect.Field; 24 //import java.lang.reflect.Method;25 24 26 25 import org.apache.log4j.*; … … 897 896 SafeProcess prcs = new SafeProcess("which " + program); 898 897 prcs.runProcess(); 899 String output = prcs.getStdOutput(); 898 String output = prcs.getStdOutput().trim(); 899 ///System.err.println("*** 'which " + program + "' returned: |" + output + "|"); 900 900 if(output.equals("")) { 901 return false; 902 } else if(output.indexOf("no "+program) !=-1) { // from GS3's org.greenstone.util.BrowserLauncher.java's isAvailable(program) 903 log("@@@ SafeProcess.isAvailable(): " + program + "is not available"); 901 904 return false; 902 905 } -
main/trunk/greenstone3/src/java/org/greenstone/util/SafeProcess.java
r31696 r31697 904 904 return false; 905 905 } 906 //System.err.println("*** 'which " + program + "' returned: " + output); 906 907 return true; 907 908 } catch (Exception exc) {
Note:
See TracChangeset
for help on using the changeset viewer.