|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.tek42.perforce.process.CmdLineExecutor
public class CmdLineExecutor
Executes on the command line. This is not thread safe.
| Constructor Summary | |
|---|---|
CmdLineExecutor(java.util.Map<java.lang.String,java.lang.String> environment)
Requires a map of environment variables (P4USER, P4CLIENT, P4PORT, etc) |
|
| Method Summary | |
|---|---|
void |
close()
Close down all open resources |
void |
exec(java.lang.String[] args)
Execute the specified command and its arguments |
java.lang.Process |
getProcess()
Useful for things like process.waitFor(). |
java.io.BufferedReader |
getReader()
Returns a BufferedReader for reading from the stdout/stderr of this process |
java.io.BufferedWriter |
getWriter()
Returns a BufferedWriter for writing to the stdin of this process |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmdLineExecutor(java.util.Map<java.lang.String,java.lang.String> environment)
environment - | Method Detail |
|---|
public void exec(java.lang.String[] args)
throws PerforceException
Executor
exec in interface ExecutorPerforceExceptionpublic java.io.BufferedReader getReader()
Executor
getReader in interface Executorpublic java.io.BufferedWriter getWriter()
Executor
getWriter in interface Executorpublic void close()
Executor
close in interface Executorpublic java.lang.Process getProcess()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||