|
CommandlineJava (Apache Ant API)
org.apache.tools.ant.types
|
Nested Class Summary | |
static class |
CommandlineJava.SysProperties
Specialized Environment class for System properties |
Constructor Summary | |
CommandlineJava()
constructor uses the VM we are running on now. |
Method Summary | |
void |
addSysproperty(Environment.Variable sysp)
|
void |
clearJavaArgs()
Clear out the java arguments. |
java.lang.Object |
clone()
clone the object; do a deep clone of all fields in the class |
Commandline.Argument |
createArgument()
|
Path |
createClasspath(Project p)
|
Commandline.Argument |
createVmArgument()
|
java.lang.String |
describeCommand()
Returns a String that describes the command and arguments suitable for verbose output before a call to Runtime.exec(String[]) |
java.lang.String |
describeJavaCommand()
Returns a String that describes the java command and arguments for in VM executions. |
java.lang.String |
getClassname()
|
Path |
getClasspath()
|
java.lang.String[] |
getCommandline()
get the command line to run a java vm. |
java.lang.String |
getJar()
|
Commandline |
getJavaCommand()
|
CommandlineJava.SysProperties |
getSystemProperties()
|
Commandline |
getVmCommand()
|
java.lang.String |
getVmversion()
|
void |
restoreSystemProperties()
|
void |
setClassname(java.lang.String classname)
set the classname to execute |
void |
setJar(java.lang.String jarpathname)
set a jar file to execute via the -jar option. |
void |
setMaxmemory(java.lang.String max)
Specify max memory of the JVM -mx or -Xmx depending on VM version |
void |
setSystemProperties()
|
void |
setVm(java.lang.String vm)
|
void |
setVmversion(java.lang.String value)
|
int |
size()
The size of the java command line. |
java.lang.String |
toString()
get a string description |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CommandlineJava()
Method Detail |
public Commandline.Argument createArgument()
public Commandline.Argument createVmArgument()
public void addSysproperty(Environment.Variable sysp)
public void setVm(java.lang.String vm)
public void setVmversion(java.lang.String value)
public void setJar(java.lang.String jarpathname)
jarpathname
- the pathname of the jar to executepublic java.lang.String getJar()
getClassname()
public void setClassname(java.lang.String classname)
classname
- the fully qualified classname.public java.lang.String getClassname()
getJar()
public Path createClasspath(Project p)
public java.lang.String getVmversion()
public java.lang.String[] getCommandline()
public void setMaxmemory(java.lang.String max)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String describeCommand()
Runtime.exec(String[])
- Since:
- Ant 1.5
public java.lang.String describeJavaCommand()
The class name is the executable in this context.
public int size()
getCommandline()
public Commandline getJavaCommand()
public Commandline getVmCommand()
public Path getClasspath()
public void setSystemProperties() throws BuildException
public void restoreSystemProperties() throws BuildException
public CommandlineJava.SysProperties getSystemProperties()
public java.lang.Object clone()
clone
in class java.lang.Object
public void clearJavaArgs()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |