public class EclipseTask extends Task
EclipseElement
Modifier | Constructor and Description |
---|---|
|
EclipseTask()
Creates a new instance of the task.
|
protected |
EclipseTask(prantl.ant.eclipse.EclipseOutput object)
Creates a new instance of the task.
|
Modifier and Type | Method and Description |
---|---|
ClassPathElement |
createClassPath()
Adds a definition of the classpath element.
|
ProjectElement |
createProject()
Adds a definition of the project element.
|
SettingsElement |
createSettings()
Adds a definition of the settings element.
|
void |
execute()
Generates the output files.
|
void |
setDestDir(java.io.File dir)
Sets the destination directory to place generated files into.
|
void |
setErrorProperty(java.lang.String name)
Property to set to "true" if there is an error in the generation of the project
files.
|
void |
setFailOnError(boolean value)
If true, stop the build process if the generation of the project files fails.
|
void |
setMode(EclipseElement.Mode value)
High-level project creation mode controlling defaults for the generated files and
changing behavior according to the specified project type, which usually responds
to the chosen development toolkit.
|
void |
setUpdateAlways(boolean flag)
Sets if the generated files are to be written always or only if the Ant build
script has been changed.
|
public EclipseTask()
protected EclipseTask(prantl.ant.eclipse.EclipseOutput object)
object
- An object that the output is delegated into.java.lang.NullPointerException
- If the parameter object is null.public void setFailOnError(boolean value)
value
- True if it should halt, otherwise false.public void setErrorProperty(java.lang.String name)
name
- A name of the property to set in case of an error.public void setMode(EclipseElement.Mode value)
value
- A project creation mode.public void setUpdateAlways(boolean flag)
flag
- True if the files should always be overwritten, otherwise
false.public void setDestDir(java.io.File dir)
dir
- A directory to place output files into.public SettingsElement createSettings()
BuildException
- If another settings element has been defined.public ProjectElement createProject()
BuildException
- If another project element has been defined.public ClassPathElement createClassPath()
BuildException
- If another classpath element has been defined.public void execute() throws BuildException
BuildException
- In case of misconfiguration or errors.