edu.isi.pegasus.common.util
Class FindExecutable
java.lang.Object
edu.isi.pegasus.common.util.FindExecutable
public class FindExecutable
- extends Object
A convenice class that allows us to determine the path to an executable
- Version:
- $Revision: 3301 $
- Author:
- Jens Voeckler, Karan Vahi
|
Method Summary |
static File |
findExec(String name)
Finds the path to an executable of a given name , based on the value of
PATH environment variable. |
static void |
main(String[] args)
Test function for the class |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FindExecutable
public FindExecutable()
findExec
public static File findExec(String name)
- Finds the path to an executable of a given name , based on the value of
PATH environment variable.
- Parameters:
name - the name of the executable to search for.
- Returns:
- the File object corresponding to the executable if found, else
null
main
public static void main(String[] args)
- Test function for the class
- Parameters:
args -
Copyright © 2011 The University of Southern California. All Rights Reserved.