org.apache.tools.ant.taskdefs
Class ExecuteJava
java.lang.Object
org.apache.tools.ant.taskdefs.ExecuteJava
- Runnable, TimeoutObserver
public class ExecuteJava
extends java.lang.Object
fork
public int fork(ProjectComponent pc)
throws BuildException
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.
killedProcess
public boolean killedProcess()
setClasspath
public void setClasspath(Path p)
Set the classpath to be used when running the Java class
p
- an Ant Path object containing the classpath.
setJavaCommand
public void setJavaCommand(Commandline javaCommand)
setOutput
public void setOutput(PrintStream out)
manage output at the task level
All output (System.out as well as System.err) will be written
to this Stream.
setPermissions
public void setPermissions(Permissions permissions)
Permissions for the application run.
setTimeout
public void setTimeout(Long timeout)
Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.