summaryrefslogtreecommitdiffstats
path: root/test/resources/property/propertycopy.xml
blob: 94254163838d23e58fa069c44abdabb0a6d58fdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<project default="invalid">
  <target name="invalid">
    <fail>Don't call this file directly.</fail>
  </target>

  <target name="setup">
    <taskdef resource="net/sf/antcontrib/antcontrib.properties">
      <classpath location="${antcontrib.jar}"/>
    </taskdef>
  </target>

  <target name="missingName" depends="setup">
    <propertycopy from="foo"/>
  </target>

  <target name="missingFrom" depends="setup">
    <propertycopy name="foo"/>
  </target>

  <target name="nonSilent" depends="setup">
    <propertycopy name="foo" from="bar"/>
  </target>

  <target name="silent" depends="setup">
    <propertycopy name="foo" from="bar" silent="true"/>
  </target>

  <target name="normal" depends="setup">
    <property name="org" value="MyOrg" />
    <property name="org.MyOrg.DisplayName" value="My Organiziation" />
    <propertycopy name="displayName" from="org.${org}.DisplayName" />
  </target>
</project>