Class PickSeedTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- com.carrotsearch.ant.tasks.junit4.PickSeedTask
-
- All Implemented Interfaces:
java.lang.Cloneable
public class PickSeedTask extends org.apache.tools.ant.Task
An ANT task to pick and fix the random seed in advance (for selecting other derivative values, for example).
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
propertyName
Name of the property to set.
-
Constructor Summary
Constructors Constructor Description PickSeedTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
Execute the task.void
setProperty(java.lang.String propertyName)
Picks a random seed and writes it to a given property.private void
validate()
Validate arguments and state.-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Method Detail
-
setProperty
public void setProperty(java.lang.String propertyName)
Picks a random seed and writes it to a given property. If the property is already defined nothing is done.
-
execute
public void execute() throws org.apache.tools.ant.BuildException
Execute the task.- Overrides:
execute
in classorg.apache.tools.ant.Task
- Throws:
org.apache.tools.ant.BuildException
-
validate
private void validate()
Validate arguments and state.
-
-