|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTask
prantl.ant.eclipse.EclipseTask
public class EclipseTask
Generates project configuration files for Eclipse. Writes files .project and .classpath for the Eclipse IDE using the settings from the Ant script. The configuration for the task is stored in an object of the class EclipseElement and the actual output is delegated into an implementation of the interface EclipseOutput.
EclipseElement
Constructor Summary | |
---|---|
|
EclipseTask()
Creates a new instance of the task. |
protected |
EclipseTask(prantl.ant.eclipse.EclipseOutput object)
Creates a new instance of the task. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |