thomas.haas@softwired-inc.com,
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CommandlineJava
public CommandlineJava()
createArgument
public Commandline.Argument createArgument()
createVmArgument
public Commandline.Argument createVmArgument()
addSysproperty
public void addSysproperty(Environment.Variable sysp)
setVm
public void setVm(java.lang.String vm)
setVmversion
public void setVmversion(java.lang.String value)
setJar
public void setJar(java.lang.String jarpathname)
- set a jar file to execute via the -jar option.
- Parameters:
the
- pathname of the jar to execute
getJar
public java.lang.String getJar()
- Returns:
- the pathname of the jar file to run via -jar option
or null if there is no jar to run.
- See Also:
getClassname()
setClassname
public void setClassname(java.lang.String classname)
- set the classname to execute
- Parameters:
classname
- the fully qualified classname.
getClassname
public java.lang.String getClassname()
- Returns:
- the name of the class to run or null if there is no class.
- See Also:
getJar()
createClasspath
public Path createClasspath(Project p)
getVmversion
public java.lang.String getVmversion()
getCommandline
public java.lang.String[] getCommandline()
- get the command line to run a java vm.
- Returns:
- the list of all arguments necessary to run the vm.
setMaxmemory
public void setMaxmemory(java.lang.String max)
- -mx or -Xmx depending on VM version
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
size
public int size()
- The size of the java command line.
- Returns:
- the total number of arguments in the java command line.
- See Also:
getCommandline()
getJavaCommand
public Commandline getJavaCommand()
getVmCommand
public Commandline getVmCommand()
getClasspath
public Path getClasspath()
setSystemProperties
public void setSystemProperties()
throws BuildException
restoreSystemProperties
public void restoreSystemProperties()
throws BuildException
getSystemProperties
public CommandlineJava.SysProperties getSystemProperties()
clone
public java.lang.Object clone()
- Overrides:
clone
in class java.lang.Object
clearJavaArgs
public void clearJavaArgs()
- Clear out the java arguments.
Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.