|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.common.Cmd
public class Cmd
This class allows to run a command in sub-process.
Constructor Summary | |
---|---|
Cmd(java.lang.String cmd)
Construtor method of Cmd class. |
|
Cmd(java.lang.String cmd,
boolean invoke)
Construtor method of Cmd class. |
|
Cmd(java.lang.String cmd,
java.lang.String[] env,
boolean invoke)
Construtor method of Cmd class. |
Method Summary | |
---|---|
void |
addArgument(java.lang.String arg)
Add a new argument to the command. |
void |
addArguments(java.util.List args)
Add a new argument to the command. |
java.util.Iterator |
getCommandLine()
|
boolean |
run()
Execute the command. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Cmd(java.lang.String cmd, boolean invoke)
cmd
- commandinvoke
- try to invoke directly the method of the java class of the
commandpublic Cmd(java.lang.String cmd)
cmd
- commandpublic Cmd(java.lang.String cmd, java.lang.String[] env, boolean invoke)
cmd
- commandenv
- environment of the commandinvoke
- invoke the compile method of the class instead of execute the commandMethod Detail |
---|
public void addArgument(java.lang.String arg)
arg
- argument added to the tail of the command argument listpublic void addArguments(java.util.List args)
args
- argument added to the tail of the command argument listpublic boolean run()
public java.util.Iterator getCommandLine()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |