Creates an ant task of the given type, configued by the `setup` action.
(String taskType, Action<Node> setup)
| 36 | public class P2AntRunner extends EclipseApp.AntRunner { |
| 37 | /** Creates an ant task of the given type, configued by the `setup` action. */ |
| 38 | public static P2AntRunner create(String taskType, Action<Node> setup) { |
| 39 | Node rootTask = new Node(null, taskType); |
| 40 | setup.execute(rootTask); |
| 41 | P2AntRunner antTask = new P2AntRunner(); |
| 42 | antTask.setTask(rootTask); |
| 43 | return antTask; |
| 44 | } |
| 45 | |
| 46 | protected P2AntRunner() {} |
| 47 |