|
JTR 5.0 API Documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.Java
jtr.ant.JtrRun
public class JtrRun
Ant task for running a JTR active node. Being derived from the Java
Ant-task, JtrRun
accepts all the attributes and sub-elements the former
task accepts. Moreover it also accepts the following ad-hoc attributes:
jtr
, the relative path to the jtr.xml file (compulsory)
host
, the name or IP address of the host running the JTR node (required only in EDiT-mode)
registryPort
, the TCP port the RMI-registry must be attached to (required only in EDiT-mode)
classLoaderPort
, the TCP port the server class-loader must be attached to (required only in EDiT-mode)
outcomeCollectorPort
, the TCP port the test-outcome collector must be attached to (required only in EDiT-mode)
policy
, a standard Java policy-file (compulsory)
log4j
, the relative path to the Log4J configuration file (compulsory)
Field Summary | |
---|---|
static java.lang.String |
ACTIVE_NODE_MAIN_CLASS
|
Fields inherited from class org.apache.tools.ant.taskdefs.Java |
---|
redirector, redirectorElement |
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
JtrRun()
|
Method Summary | |
---|---|
void |
execute()
|
java.lang.String |
getLog4j()
Get the Log4J configuration file. |
protected void |
readAdHocJtrJvmArgs(java.lang.StringBuilder params)
Read specific JVM args. |
protected void |
readCommonJtrJvmArgs(java.lang.StringBuilder params)
Read common JVM args. |
void |
setClassLoaderPort(java.lang.String classLoaderPort)
Set the TCP port the class loader listens to. |
void |
setHost(java.lang.String host)
Set the host-name or IP address |
void |
setJtr(java.lang.String jtr)
Set the configuration file. |
void |
setLog4j(java.lang.String log4j)
Set the Log4J configuration file. |
protected void |
setMainClass()
Set the main class. |
void |
setOutcomeCollectorPort(java.lang.String outcomeCollectorPort)
Set the TCP port the outcome-collector listens to. |
void |
setPolicy(java.lang.String policy)
Set the Java policy file. |
void |
setRegistryPort(java.lang.String port)
Set the registry TCP port |
Methods inherited from class org.apache.tools.ant.taskdefs.Java |
---|
addAssertions, addConfiguredRedirector, addEnv, addSysproperty, addSyspropertyset, clearArgs, createArg, createBootclasspath, createClasspath, createJvmarg, createPermissions, createWatchdog, executeJava, getCommandLine, getSysProperties, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, maybeSetResultPropertyValue, run, setAppend, setArgs, setClassname, setClasspath, setClasspathRef, setCloneVm, setDir, setError, setErrorProperty, setFailonerror, setFork, setInput, setInputString, setJar, setJvm, setJvmargs, setJVMVersion, setLogError, setMaxmemory, setNewenvironment, setOutput, setOutputproperty, setResultProperty, setSpawn, setTimeout, setupRedirector |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ACTIVE_NODE_MAIN_CLASS
Constructor Detail |
---|
public JtrRun()
Method Detail |
---|
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.taskdefs.Java
org.apache.tools.ant.BuildException
protected void readAdHocJtrJvmArgs(java.lang.StringBuilder params)
params
- The JVM argsprotected void readCommonJtrJvmArgs(java.lang.StringBuilder params)
params
- The JVM argsprotected void setMainClass()
public void setJtr(java.lang.String jtr)
jtr
- The configuration filepublic void setHost(java.lang.String host)
host
- The host to setpublic void setRegistryPort(java.lang.String port)
registryPort
- The registryPort to setpublic void setPolicy(java.lang.String policy)
policy
- The policy to setpublic java.lang.String getLog4j()
public void setLog4j(java.lang.String log4j)
log4j
- The log4j to setpublic void setClassLoaderPort(java.lang.String classLoaderPort)
classLoaderPort
- The classloader port to setpublic void setOutcomeCollectorPort(java.lang.String outcomeCollectorPort)
outcomeCollectorPort
- The outcome-collector port to set
|
The JTR Project is licensed under GPL version 2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |