|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.core.CommandLauncher
public class CommandLauncher
Field Summary | |
---|---|
static int |
COMMAND_CANCELED
|
static int |
ILLEGAL_COMMAND
|
static int |
OK
|
Constructor Summary | |
---|---|
CommandLauncher()
Creates a new launcher Fills in stderr and stdout output to the given streams. |
Method Summary | |
---|---|
java.lang.Process |
execute(org.eclipse.core.runtime.IPath commandPath,
java.lang.String[] args,
java.lang.String[] env,
org.eclipse.core.runtime.IPath changeToDirectory)
Execute a command |
java.lang.String[] |
getCommandArgs()
|
java.lang.String |
getCommandLine()
return the constructed Command line. |
java.util.Properties |
getEnvironment()
|
java.lang.String |
getErrorMessage()
|
void |
setErrorMessage(java.lang.String error)
|
void |
showCommand(boolean show)
Sets if the command should be printed out first before executing |
int |
waitAndRead(java.io.OutputStream out,
java.io.OutputStream err)
Reads output form the process to the streams. |
int |
waitAndRead(java.io.OutputStream output,
java.io.OutputStream err,
org.eclipse.core.runtime.IProgressMonitor monitor)
Reads output form the process to the streams. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int COMMAND_CANCELED
public static final int ILLEGAL_COMMAND
public static final int OK
Constructor Detail |
---|
public CommandLauncher()
null
, if output not
required
Method Detail |
---|
public void showCommand(boolean show)
public java.lang.String getErrorMessage()
public void setErrorMessage(java.lang.String error)
public java.lang.String[] getCommandArgs()
public java.util.Properties getEnvironment()
public java.lang.String getCommandLine()
public java.lang.Process execute(org.eclipse.core.runtime.IPath commandPath, java.lang.String[] args, java.lang.String[] env, org.eclipse.core.runtime.IPath changeToDirectory)
public int waitAndRead(java.io.OutputStream out, java.io.OutputStream err)
public int waitAndRead(java.io.OutputStream output, java.io.OutputStream err, org.eclipse.core.runtime.IProgressMonitor monitor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |