source: release-kits/lirk3/resources/gs3-release-maker/apache-ant-1.6.5/src/etc/testcases/taskdefs/optional/perforce/changerenumbered.xml@ 14982

Last change on this file since 14982 was 14982, checked in by oranfry, 16 years ago

initial import of LiRK3

File size: 1.0 KB
Line 
1<!-- author Antoine Levy-Lambert -->
2<!-- this file demonstrates that p4.change will be modified by p4submit -->
3<!-- if the change number is modified by the Perforce daemon during the submission -->
4<project name="build1" default="runtest">
5 <target name="runtest">
6 <p4change/>
7 <property name="change1" value="${p4.change}" />
8 <echo>
9doing a first change ${change1}
10</echo>
11 <p4change/>
12 <property name="change2" value="${p4.change}" />
13 <echo>
14doing a second change ${change2}
15</echo>
16 <p4edit view="//depot/foobar" change="${change1}" />
17 <p4edit view="//depot/hello" change="${change2}" />
18 <echo>
19before submitting of hello change ${change2} p4.change is now ${p4.change}
20</echo>
21 <p4submit change="${change2}"/>
22 <echo>
23after submitting of hello p4.change is now ${p4.change}
24</echo>
25 <echo>
26before submitting of foobar change ${change1}
27</echo>
28 <p4submit change="${change1}"/>
29 <echo>
30after submitting of foobar p4.change is now ${p4.change}
31</echo>
32 </target>
33</project>
Note: See TracBrowser for help on using the repository browser.