public class OddjobTask
extends org.apache.tools.ant.Task
This is an example of using it in a build file.
<taskdef name="oddjob" classname="org.oddjob.ant.OddjobTask"/> <target name="simple" description="Run somehting simple"/> <oddjob config="simple/oddjob.xml"/> </target>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ODDJOB_HOME_PROPERTY |
Constructor and Description |
---|
OddjobTask() |
Modifier and Type | Method and Description |
---|---|
org.apache.tools.ant.taskdefs.Property |
createProperty()
Property to pass to the new project.
|
void |
execute()
Execute the job.
|
java.lang.String |
getArgs() |
java.io.File |
getFile() |
java.lang.String |
getName()
Get the name.
|
java.io.File |
getOddballsDir() |
java.lang.String |
getOddballsPath() |
boolean |
isInheritAll() |
boolean |
isNoOddballs() |
void |
setArgs(java.lang.String args) |
void |
setFile(java.io.File file) |
void |
setInheritAll(boolean inheritAll) |
void |
setName(java.lang.String name)
Set the name.
|
void |
setNoOddballs(boolean noOddballs) |
void |
setOddballsDir(java.io.File oddballsDir) |
void |
setOddballsPath(java.lang.String oddballsPath) |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public static final java.lang.String ODDJOB_HOME_PROPERTY
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
public void setName(java.lang.String name)
name
- The name.public java.lang.String getName()
public boolean isInheritAll()
public void setInheritAll(boolean inheritAll)
public org.apache.tools.ant.taskdefs.Property createProperty()
Property
object.public java.io.File getFile()
public void setFile(java.io.File file)
public java.io.File getOddballsDir()
public void setOddballsDir(java.io.File oddballsDir)
public boolean isNoOddballs()
public void setNoOddballs(boolean noOddballs)
public java.lang.String getOddballsPath()
public void setOddballsPath(java.lang.String oddballsPath)
public java.lang.String getArgs()
public void setArgs(java.lang.String args)