source: other-projects/trunk/gs3-release-maker/apache-ant-1.6.5/src/etc/testcases/taskdefs/optional/perforce/needsresolve.xml@ 14627

Last change on this file since 14627 was 14627, checked in by oranfry, 17 years ago

initial import of the gs3-release-maker

File size: 2.3 KB
Line 
1<!-- author Antoine Levy-Lambert -->
2<!-- this test shows that p4 submit can now indicate that a file needs to be resolved -->
3<!-- before running the test, edit this xml and change the 5 properties at the top to values which make sense on your system-->
4<!-- the test uses two Perforce client specs which must exist beforehand -->
5<!-- also using both client specs you should be able to edit the file ${depot_file_spec} -->
6<project name="testresolve" default= "test">
7 <property name="first_client" value="levyant_dev_ant"/>
8 <property name="first_client_root" value="C:\dev\depot"/>
9 <property name="second_client" value="levyant_cygwin_test"/>
10 <property name="second_client_root" value="C:\dev\test"/>
11 <property name="depot_file_spec" value="//depot/foobar"/>
12 <target name="test">
13 <p4change client="${first_client}"/>
14 <property name="change1" value="${p4.change}" />
15 <p4change client="${second_client}"/>
16 <property name="change2" value="${p4.change}" />
17 <sequential>
18 <antcall target="edit">
19 <param name="p4.client" value="${first_client}"/>
20 <param name="client_root" value="${first_client_root}"/>
21 <param name="change" value="${change1}"/>
22 </antcall>
23 <antcall target="edit">
24 <param name="p4.client" value="${second_client}"/>
25 <param name="client_root" value="${second_client_root}"/>
26 <param name="change" value="${change2}"/>
27 </antcall>
28 <antcall target="submit">
29 <param name="p4.client" value="${first_client}"/>
30 <param name="change" value="${change1}"/>
31 </antcall>
32 <antcall target="submit">
33 <param name="p4.client" value="${second_client}"/>
34 <param name="change" value="${change2}"/>
35 </antcall>
36 </sequential>
37 </target>
38 <target name="edit">
39 <echo>
40doing a change ${change} on client ${p4.client}
41</echo>
42 <p4edit change="${change}" view="${depot_file_spec}"/>
43 <mkdir dir="${client_root}/depot"/>
44 <echo file="${client_root}/depot/foobar">
45hello ${p4.client} ${change}
46</echo>
47 </target>
48 <target name="submit">
49 <p4submit change="${change}" needsresolveproperty="needsresolve" changeproperty="mychange"/>
50 <echo>
51p4.needsresolve ${p4.needsresolve} after submit
52 needsresolveproperty ${needsresolve} after submit
53 changeproperty ${mychange} after submit
54</echo>
55 </target>
56</project>
Note: See TracBrowser for help on using the repository browser.