View difference between Paste ID: vs2x4pUd and JpyK9mKV
SHOW: | | - or go back to the newest paste.
1
<?xml version="1.0" encoding="UTF-8"?>
2
3
<project name="test" default="build">
4
5
  <target name="build" >
6
    <if>
7
      <equals arg1="bar" arg2="bar" />
8
      <then>
9
        <property name="test.value" value="bar" />
10
        <echo>${test.value}</echo>
11
        <echo msg="${test.value}" />
12
      </then>
13
    </if>
14
15
    <property name="test.value" value="foo" override="true"/>
16
    <echo>${test.value}</echo>
17
    <echo msg="${test.value}" />
18
  </target>
19-
</project>
19+
</project>
20
21
22
output:
23
test > build:
24
25
     [echo] ${test.value}
26
     [echo] bar
27
     [echo] foo
28
     [echo] foo
29
30
BUILD FINISHED