org.apache.tools.ant.taskdefs
public class ExecuteJava extends Object implements Runnable, TimeoutObserver
Since: Ant 1.2
Method Summary | |
---|---|
void | execute(Project project) |
int | fork(ProjectComponent pc)
Runs the Java command in a separate VM, this does not give you
the full flexibility of the Java task, but may be enough for
simple needs.
|
boolean | killedProcess() |
void | run() |
void | setClasspath(Path p)
Set the classpath to be used when running the Java class
|
void | setJavaCommand(Commandline javaCommand) |
void | setOutput(PrintStream out)
All output (System.out as well as System.err) will be written
to this Stream.
|
void | setPermissions(Permissions permissions)
Permissions for the application run. |
void | setSystemProperties(CommandlineJava.SysProperties s) |
void | setTimeout(Long timeout) |
void | timeoutOccured(Watchdog w) |
Since: Ant 1.6.3
Since: 1.19, Ant 1.5
Since: Ant 1.5
Parameters: p an Ant Path object containing the classpath.
Deprecated: manage output at the task level
All output (System.out as well as System.err) will be written to this Stream.Parameters: permissions
Since: Ant 1.6
Since: Ant 1.5
Since: Ant 1.5