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)
  • Field Details

  • Constructor Details

    • AntRunner

      public AntRunner()
  • Method Details

    • runUsing

      public void runUsing(EclipseRunner runner) throws Exception
      Saves the buildfile to a temporary file, runs the task, then deletes it.
      Overrides:
      runUsing in class EclipseApp
      Throws:
      Exception
    • setTask

      public void setTask(groovy.util.Node taskNode)
      Sets the XML task node which will be called by this ant task.
    • define

      public void define(String key, String value)
      Defines a property for the 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 class EclipseApp