1 28 29 package com.idaremedia.antx.flowcontrol.call; 30 31 import java.util.Map ; 32 33 import org.apache.tools.ant.BuildException; 34 import org.apache.tools.ant.taskdefs.Ant; 35 import org.apache.tools.ant.taskdefs.Property; 36 import org.apache.tools.ant.types.PropertySet; 37 38 48 49 public interface TargetCaller 50 { 51 54 String getTargetName(); 55 56 57 60 String getStepName(); 61 62 63 66 Property createProperty(); 67 68 69 73 PropertySet createPropertySet(); 74 75 76 80 Ant.Reference createReference(); 81 82 83 87 void run() throws BuildException; 88 89 90 101 void run(String property, String value) 102 throws BuildException; 103 104 105 113 void run(Map properties) 114 throws BuildException; 115 116 117 124 void run(TargetCaller.Prep prep) 125 throws BuildException; 126 127 128 129 136 interface RunSelector { 137 142 void run(TargetCaller caller) throws BuildException; 143 } 144 145 146 147 155 interface Prep { 156 162 void prepare(TargetCaller caller) throws BuildException; 163 } 164 } 165 166 167 168 | Popular Tags |