| <!-- Ein test case sollte die property proposals in main --> |
| <!-- Ueberpruefen, und ob die diversen properties entsprechend --> |
| <!-- der dependencies gesetzt sind --> |
| |
| <project default="main"> |
| |
| <property name="do_init" value="val"></property> |
| |
| <target name="properties"> |
| <property name="prop_prop" value="val"></property> |
| <property name="do_not_compile" value="val"></property> |
| <echo message="executing properties"></echo> |
| </target> |
| |
| <!-- should never be executed since property is not set --> |
| <target name="additional_properties" if="do_addit_props"> |
| <property name="adit_prop" value="val" /> |
| <echo message="executing additional_properties"></echo> |
| </target> |
| |
| <target name="init" if="doinit" depends="properties,additional_properties"> |
| <property name="init_prop" value="val"></property> |
| <echo message="executing init"></echo> |
| </target> |
| |
| <!-- should never be executed since property should be set --> |
| <!-- by properties because of dependencies before --> |
| <target name="compile" unless="do_not_compile"> |
| <property name="compile_prop" value="val"></property> |
| <echo message="executing compile"></echo> |
| </target> |
| |
| <target name="main" depends="init, compile"> |
| <property name="main_prop" value="val"></property> |
| <echo message="executing main ${well}"></echo> |
| </target> |
| |
| </project> |