public class ExecuteJava extends Object implements Runnable, TimeoutObserver
| Constructor and Description | 
|---|
| ExecuteJava() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | execute(Project project)Execute the Java class against the specified Ant Project. | 
| int | fork(ProjectComponent pc)Run 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()Get whether the process was killed. | 
| void | run()Run this ExecuteJava in a Thread. | 
| void | setClasspath(Path p)Set the classpath to be used when running the Java class. | 
| void | setJavaCommand(Commandline javaCommand)Set the Java "command" for this ExecuteJava. | 
| void | setPermissions(Permissions permissions)Set the permissions for the application run. | 
| void | setSystemProperties(CommandlineJava.SysProperties s)Set the system properties to use when running the Java class. | 
| void | setTimeout(Long timeout)Set the timeout for this ExecuteJava. | 
| static void | setupCommandLineForVMS(Execute exe,
                      String[] command)On VMS platform, we need to create a special java options file
 containing the arguments and classpath for the java command. | 
| void | timeoutOccured(Watchdog w)Mark timeout as having occurred. | 
public void execute(Project project) throws BuildException
project - the Project to use.BuildException - on error.public int fork(ProjectComponent pc) throws BuildException
pc - the ProjectComponent to use for logging, etc.BuildException - on error.public boolean killedProcess()
true if the process was killed, false otherwise.public void run()
run in interface RunnableThread.run()public void setClasspath(Path p)
p - an Ant Path object containing the classpath.public void setJavaCommand(Commandline javaCommand)
javaCommand - the classname and arguments in a Commandline.public void setPermissions(Permissions permissions)
permissions - the Permissions to use.public void setSystemProperties(CommandlineJava.SysProperties s)
s - CommandlineJava system properties.public void setTimeout(Long timeout)
timeout - timeout as Long.public static void setupCommandLineForVMS(Execute exe, String[] command)
exe - the Execute instance to alter.command - the command-line.public void timeoutOccured(Watchdog w)
timeoutOccured in interface TimeoutObserverw - the responsible Watchdog.