| 1 | <project default="invalid"> |
| 2 | <target name="invalid"> |
| 3 | <fail>Don't call this file directly.</fail> |
| 4 | </target> |
| 5 | |
| 6 | <target name="setup"> |
| 7 | <taskdef resource="net/sf/antcontrib/antcontrib.properties"> |
| 8 | <classpath location="${antcontrib.jar}"/> |
| 9 | </taskdef> |
| 10 | </target> |
| 11 | |
| 12 | <target name="missingName" depends="setup"> |
| 13 | <propertycopy from="foo"/> |
| 14 | </target> |
| 15 | |
| 16 | <target name="missingFrom" depends="setup"> |
| 17 | <propertycopy name="foo"/> |
| 18 | </target> |
| 19 | |
| 20 | <target name="nonSilent" depends="setup"> |
| 21 | <propertycopy name="foo" from="bar"/> |
| 22 | </target> |
| 23 | |
| 24 | <target name="silent" depends="setup"> |
| 25 | <propertycopy name="foo" from="bar" silent="true"/> |
| 26 | </target> |
| 27 | |
| 28 | <target name="normal" depends="setup"> |
| 29 | <property name="org" value="MyOrg" /> |
| 30 | <property name="org.MyOrg.DisplayName" value="My Organiziation" /> |
| 31 | <propertycopy name="displayName" from="org.${org}.DisplayName" /> |
| 32 | </target> |
| 33 | </project> |