Google

ExecuteJava (Apache Ant API)

org.apache.tools.ant.taskdefs
Class ExecuteJava


java.lang.Object

  |

  +--org.apache.tools.ant.taskdefs.ExecuteJava

All Implemented Interfaces:
java.lang.Runnable, TimeoutObserver

public class ExecuteJava
extends java.lang.Object
implements java.lang.Runnable, TimeoutObserver

Since:
Ant 1.2
Author:
thomas.haas@softwired-inc.com
, Stefan Bodewig

Constructor Summary
ExecuteJava()
           
 
Method Summary
 void execute(Project project)
           
 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(java.io.PrintStream out)
          Deprecated. manage output at the task level
 void setSystemProperties(CommandlineJava.SysProperties s)
           
 void setTimeout(java.lang.Long timeout)
           
 void timeoutOccured(Watchdog w)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecuteJava


public ExecuteJava()
Method Detail

setJavaCommand


public void setJavaCommand(Commandline javaCommand)

setClasspath


public void setClasspath(Path p)
Set the classpath to be used when running the Java class

Parameters:
p - an Ant Path object containing the classpath.

setSystemProperties


public void setSystemProperties(CommandlineJava.SysProperties s)

setOutput


public void setOutput(java.io.PrintStream out)
Deprecated. manage output at the task level

All output (System.out as well as System.err) will be written to this Stream.


setTimeout


public void setTimeout(java.lang.Long timeout)
Since:
1.19, Ant 1.5

execute


public void execute(Project project)
             throws BuildException
BuildException

run


public void run()
Specified by:
run in interface java.lang.Runnable
Since:
1.19, Ant 1.5

timeoutOccured


public void timeoutOccured(Watchdog w)
Specified by:
timeoutOccured in interface TimeoutObserver
Since:
1.19, Ant 1.5

killedProcess


public boolean killedProcess()
Since:
1.19, Ant 1.5


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.