Package org.intermine.task
Class ModelOutputTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.intermine.task.ModelOutputTask
-
public class ModelOutputTask extends org.apache.tools.ant.TaskCreates and runs a ModelOutput process to generate java or config files.- Author:
- Richard Smith
-
-
Constructor Summary
Constructors Constructor Description ModelOutputTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()voidsetDestDir(java.io.File destDir)Sets the directory that output should be written to.voidsetModel(java.lang.String modelName)Set the model to be used.voidsetType(java.lang.String type)Set the type of model output required.-
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Field Detail
-
destDir
protected java.io.File destDir
-
model
protected Model model
-
type
protected java.lang.String type
-
-
Method Detail
-
setDestDir
public void setDestDir(java.io.File destDir)
Sets the directory that output should be written to.- Parameters:
destDir- the directory location
-
setType
public void setType(java.lang.String type)
Set the type of model output required.- Parameters:
type- the type of output
-
setModel
public void setModel(java.lang.String modelName)
Set the model to be used.- Parameters:
modelName- the model to be used
-
execute
public void execute()
- Overrides:
executein classorg.apache.tools.ant.Task
-
-