|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task net.sf.jameleon.ant.ExecuteTestCaseSeparateVMTask
public class ExecuteTestCaseSeparateVMTask
Field Summary | |
---|---|
protected static String |
DASH
|
protected LinkedList |
fileSets
|
protected static String |
LB
|
protected static String |
US
|
Fields inherited from class org.apache.tools.ant.Task |
---|
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
project |
Constructor Summary | |
---|---|
ExecuteTestCaseSeparateVMTask()
|
Method Summary | |
---|---|
void |
addEnv(org.apache.tools.ant.types.Environment.Variable var)
Adds an environment variable. |
void |
addFileset(org.apache.tools.ant.types.FileSet set)
Ant's <fileset> definition. |
void |
addSysproperty(org.apache.tools.ant.types.Environment.Variable sysp)
Adds a system property. |
void |
clearArgs()
Clear out the arguments to this java task. |
org.apache.tools.ant.types.Commandline.Argument |
createArg()
Adds a command-line argument. |
org.apache.tools.ant.types.Path |
createClasspath()
Adds a path to the classpath. |
org.apache.tools.ant.types.Commandline.Argument |
createJvmarg()
Adds a JVM argument. |
protected org.apache.tools.ant.taskdefs.ExecuteWatchdog |
createWatchdog()
Create the Watchdog to kill a runaway process. |
void |
execute()
Jameleon's implementation of Task.execute(). |
int |
executeJava()
Do the execution and return a return code. |
protected void |
handleErrorFlush(String line)
Pass output sent to System.err to specified output file. |
protected void |
handleErrorOutput(String line)
Pass output sent to System.err to specified output file. |
protected void |
handleFlush(String line)
Pass output sent to System.out to specified output file. |
protected void |
handleOutput(String line)
Pass output sent to System.out to specified output file. |
protected void |
run(String classname,
Vector args)
Executes the given classname with the given arguments as it was a command line application. |
void |
setAppend(boolean append)
If true, append output to existing file. |
void |
setBaseDir(File dir)
|
void |
setClassname(String s)
Sets the Java class to execute. |
void |
setClasspath(org.apache.tools.ant.types.Path s)
Set the classpath to be used when running the Java class |
void |
setClasspathRef(org.apache.tools.ant.types.Reference r)
Classpath to use, by reference. |
void |
setDebug(boolean debug)
|
void |
setFailOnError(boolean fail)
If true, then fail if the command exits with a returncode other than 0 |
void |
setFork(boolean fork)
|
void |
setJvm(String s)
Set the command used to start the VM (only if not forking). |
void |
setJvmargs(String s)
Set the command line arguments for the JVM. |
void |
setMaxmemory(String max)
Corresponds to -mx or -Xmx depending on VM version. |
void |
setNewenvironment(boolean newenv)
If true, use a completely new environment. |
void |
setOutput(File out)
File the output of the process is redirected to. |
void |
setPrintFooter(boolean printFooter)
|
void |
setSeparateVmPerScript(boolean separateVmPerScript)
|
void |
setTimeout(Long value)
Timeout in milliseconds after which the process will be killed. |
protected void |
validateOptions()
Validate required options are set. |
Methods inherited from class org.apache.tools.ant.Task |
---|
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleInput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
getProject, setProject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final LinkedList fileSets
protected static final String LB
protected static final String DASH
protected static final String US
Constructor Detail |
---|
public ExecuteTestCaseSeparateVMTask()
Method Detail |
---|
public final void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
- If anything goes wrong.public void setPrintFooter(boolean printFooter)
public void setSeparateVmPerScript(boolean separateVmPerScript)
public void setDebug(boolean debug)
public void setBaseDir(File dir)
public void setFork(boolean fork)
public void addFileset(org.apache.tools.ant.types.FileSet set)
set
- a fileset to addprotected void validateOptions() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- if a fileset isn't set.public int executeJava() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
public void setClasspath(org.apache.tools.ant.types.Path s)
s
- an Ant Path object containing the classpath.public org.apache.tools.ant.types.Path createClasspath()
public void setClasspathRef(org.apache.tools.ant.types.Reference r)
public void setClassname(String s) throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
public org.apache.tools.ant.types.Commandline.Argument createArg()
public void setJvmargs(String s)
public org.apache.tools.ant.types.Commandline.Argument createJvmarg()
public void setJvm(String s)
public void addSysproperty(org.apache.tools.ant.types.Environment.Variable sysp)
public void setFailOnError(boolean fail)
public void setOutput(File out)
public void setMaxmemory(String max)
public void addEnv(org.apache.tools.ant.types.Environment.Variable var)
Will be ignored if we are not forking a new VM.
public void setNewenvironment(boolean newenv)
Will be ignored if we are not forking a new VM.
public void setAppend(boolean append)
public void setTimeout(Long value)
protected void handleOutput(String line)
handleOutput
in class org.apache.tools.ant.Task
protected void handleFlush(String line)
handleFlush
in class org.apache.tools.ant.Task
protected void handleErrorOutput(String line)
handleErrorOutput
in class org.apache.tools.ant.Task
protected void handleErrorFlush(String line)
handleErrorFlush
in class org.apache.tools.ant.Task
protected void run(String classname, Vector args) throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
public void clearArgs()
protected org.apache.tools.ant.taskdefs.ExecuteWatchdog createWatchdog() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |