Class EclipseApp.AntRunner
- java.lang.Object
-
- com.diffplug.gradle.eclipserunner.EclipseApp
-
- com.diffplug.gradle.eclipserunner.EclipseApp.AntRunner
-
- Direct Known Subclasses:
P2AntRunner
- Enclosing class:
- EclipseApp
public static class EclipseApp.AntRunner extends EclipseApp
Models the `org.eclipse.ant.core.antRunner` application, including its `build.xml`. [Ant task documentation](https://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fp2_repositorytasks.htm)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.diffplug.gradle.eclipserunner.EclipseApp
EclipseApp.AntRunner
-
-
Field Summary
Fields Modifier and Type Field Description static String
ID
-
Fields inherited from class com.diffplug.gradle.eclipserunner.EclipseApp
args
-
-
Constructor Summary
Constructors Constructor Description AntRunner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
buildXml()
Returns the underlying buildXml.String
completeState()
Includes the full state of both the args and the build.xml.void
define(String key, String value)
Defines a property for the ant task.void
defineToFile(String key, File value)
Defines a property to a file for the ant task.void
runUsing(EclipseRunner runner)
Saves the buildfile to a temporary file, runs the task, then deletes it.void
setTask(groovy.util.Node taskNode)
Sets the XML task node which will be called by this ant task.-
Methods inherited from class com.diffplug.gradle.eclipserunner.EclipseApp
addArg, addArg, clean, consolelog, toArgList, toString
-
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
runUsing
public void runUsing(EclipseRunner runner) throws Exception
Saves the buildfile to a temporary file, runs the task, then deletes it.- Overrides:
runUsing
in classEclipseApp
- Throws:
Exception
-
setTask
public void setTask(groovy.util.Node taskNode)
Sets the XML task node which will be called by this ant task.
-
defineToFile
public void defineToFile(String key, File value)
Defines a property to a file for the ant task.
-
buildXml
protected String buildXml()
Returns the underlying buildXml.
-
completeState
public String completeState()
Includes the full state of both the args and the build.xml.- Overrides:
completeState
in classEclipseApp
-
-