|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.Task | +--org.apache.tools.ant.taskdefs.Java
This task acts as a loader for java applications but allows to use the same JVM for the called application thus resulting in much faster operation.
Fields inherited from class org.apache.tools.ant.Task |
description, location, project, target, taskName, taskType, wrapper |
Constructor Summary | |
Java()
|
Method Summary | |
void |
addSysproperty(Environment.Variable sysp)
Add a nested sysproperty element. |
void |
clearArgs()
Clear out the arguments to this java task. |
Commandline.Argument |
createArg()
Creates a nested arg element. |
Path |
createClasspath()
Creates a nested classpath element |
Commandline.Argument |
createJvmarg()
Creates a nested jvmarg element. |
void |
execute()
Do the execution. |
int |
executeJava()
Do the execution and return a return code. |
protected void |
run(java.lang.String classname,
java.util.Vector args)
Executes the given classname with the given arguments as it was a command line application. |
void |
setArgs(java.lang.String s)
Set the command line arguments for the class. |
void |
setClassname(java.lang.String s)
Set the class name. |
void |
setClasspath(Path s)
Set the classpath to be used for this compilation. |
void |
setClasspathRef(Reference r)
Adds a reference to a CLASSPATH defined elsewhere. |
void |
setDir(java.io.File d)
The working directory of the process |
void |
setFailonerror(boolean fail)
Throw a BuildException if process returns non 0. |
void |
setFork(boolean s)
Set the forking flag. |
void |
setJvm(java.lang.String s)
Set the command used to start the VM (only if fork==false). |
void |
setJvmargs(java.lang.String s)
Set the command line arguments for the JVM. |
void |
setMaxmemory(java.lang.String max)
-mx or -Xmx depending on VM version |
void |
setOutput(java.io.File out)
File the output of the process is redirected to. |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getProject, getRuntimeConfigurableWrapper, getTaskName, init, log, log, maybeConfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Java()
Method Detail |
public void execute() throws BuildException
execute
in class Task
org.apache.tools.ant.Task
BuildException
- if someting goes wrong with the buildpublic int executeJava() throws BuildException
public void setClasspath(Path s)
public Path createClasspath()
public void setClasspathRef(Reference r)
public void setClassname(java.lang.String s)
public void setArgs(java.lang.String s)
public Commandline.Argument createArg()
public void setFork(boolean s)
public void setJvmargs(java.lang.String s)
public Commandline.Argument createJvmarg()
public void setJvm(java.lang.String s)
public void addSysproperty(Environment.Variable sysp)
public void setFailonerror(boolean fail)
public void setDir(java.io.File d)
public void setOutput(java.io.File out)
public void setMaxmemory(java.lang.String max)
protected void run(java.lang.String classname, java.util.Vector args) throws BuildException
public void clearArgs()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |