blob: 1a83fa678a5c786011a5c9126c0b98b3c1e4b036 [file] [log] [blame]
david_williams13d378c2007-08-22 04:04:54 +00001<project
2 name="whatisfixed"
3 default="whatisfixed"
4 basedir=".">
ndai3c9e0722006-10-28 05:43:50 +00005
david_williams42f9b242006-11-27 18:45:14 +00006 <!-- = = = standard properties pattern = = = -->
7 <!--
david_williams13d378c2007-08-22 04:04:54 +00008 Note to be cross-platform, "environment variables" are only appropriate for
david_williams42f9b242006-11-27 18:45:14 +00009 some variables, e.g. ones we set, since properties are case sensitive, even if
10 the environment variables on your operating system are not, e.g. it will
11 be ${env.Path} not ${env.PATH} on Windows -->
12 <property environment="env" />
david_williams13d378c2007-08-22 04:04:54 +000013
david_williams42f9b242006-11-27 18:45:14 +000014 <!--
david_williams13d378c2007-08-22 04:04:54 +000015 Let users override standard properties, if desired.
16 If directory, file, or some properties do not exist,
17 then standard properties will be used.
18 -->
19 <property
20 file="${env.LOCAL_BUILD_PROPERTIES_DIR}/${ant.project.name}.properties" />
ndai3c9e0722006-10-28 05:43:50 +000021
david_williams42f9b242006-11-27 18:45:14 +000022 <!-- = = = end standard properties pattern = = = -->
ndai3c9e0722006-10-28 05:43:50 +000023
david_williams13d378c2007-08-22 04:04:54 +000024 <target
25 name="whatisfixed"
26 depends="clean">
ndai3c9e0722006-10-28 05:43:50 +000027
28
29
david_williams13d378c2007-08-22 04:04:54 +000030 <mkdir dir="${whatisfixed.workdir}" />
31 <antcall target="releng" />
ndai3c9e0722006-10-28 05:43:50 +000032
david_williams13d378c2007-08-22 04:04:54 +000033 <!-- create what-is-fixed summary files -->
34 <ant antfile="${wtpBuilder}">
35 <property
36 name="wtp.builder.home"
david_williams63908472007-11-16 23:53:14 +000037 value="${whatisfixed.workdir}/${env.RELENGWTPBUILDER}" />
david_williams13d378c2007-08-22 04:04:54 +000038 <property
39 name="buildBranch"
40 value="${buildBranch}" />
41 <property
42 name="wtpbuilder.whatisfixed.properties.file"
43 value="${basedir}/whatisfixed.properties" />
44 </ant>
ndai3c9e0722006-10-28 05:43:50 +000045
david_williams13d378c2007-08-22 04:04:54 +000046 <antcall target="sync" />
ndai3c9e0722006-10-28 05:43:50 +000047
david_williams13d378c2007-08-22 04:04:54 +000048 </target>
ndai3c9e0722006-10-28 05:43:50 +000049
david_williams13d378c2007-08-22 04:04:54 +000050 <target name="releng">
ndai3c9e0722006-10-28 05:43:50 +000051
david_williams13d378c2007-08-22 04:04:54 +000052 <available
david_williams771c0a12007-11-17 02:19:01 +000053 file="${whatisfixed.workdir}/${env.RELENG}/maps/dependencies.properties"
david_williams13d378c2007-08-22 04:04:54 +000054 property="map.exists" />
55 <available
david_williams63908472007-11-16 23:53:14 +000056 file="${whatisfixed.workdir}/${env.RELENGWTPBUILDER}/scripts/dependency/build.xml"
david_williams13d378c2007-08-22 04:04:54 +000057 property="releng.exists" />
58 <antcall target="checkout-maps" />
59 <antcall target="getwtpbuilder" />
60 </target>
ndai3c9e0722006-10-28 05:43:50 +000061
david_williams13d378c2007-08-22 04:04:54 +000062 <target
63 name="checkout-maps"
64 unless="map.exists">
65 <cvs
66 quiet="${env.CVS_QUIET}"
67 reallyquiet="${env.CVS_REALLY_QUIET}"
68 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +000069 package="${env.RELENG}/maps/build.cfg"
david_williams13d378c2007-08-22 04:04:54 +000070 dest="${whatisfixed.workdir}"
71 tag="${wtp.cvsTag}" />
72 </target>
ndai3c9e0722006-10-28 05:43:50 +000073
david_williams13d378c2007-08-22 04:04:54 +000074 <target
75 name="getwtpbuilder"
76 unless="releng.exists">
david_williams329769e2007-11-17 02:00:30 +000077 <property file="${whatisfixed.workdir}/${env.RELENG}/maps/build.cfg" />
david_williams13d378c2007-08-22 04:04:54 +000078 <delete
david_williams63908472007-11-16 23:53:14 +000079 dir="${whatisfixed.workdir}/${env.RELENGWTPBUILDER}"
david_williams13d378c2007-08-22 04:04:54 +000080 failonerror="false" />
81 <echo
david_williams97325e72007-11-16 23:44:40 +000082 message="Version tag for ${env.RELENGWTPBUILDER} is: ${wtpBuilderVersion}" />
david_williams13d378c2007-08-22 04:04:54 +000083 <cvs
84 quiet="${env.CVS_QUIET}"
85 reallyquiet="${env.CVS_REALLY_QUIET}"
86 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +000087 package="${env.RELENGWTPBUILDER}"
david_williams13d378c2007-08-22 04:04:54 +000088 dest="${whatisfixed.workdir}"
89 tag="${wtpBuilderVersion}" />
90 </target>
ndai3c9e0722006-10-28 05:43:50 +000091
david_williams13d378c2007-08-22 04:04:54 +000092 <target name="clean">
93 <delete dir="${whatisfixed.workdir}" />
94 </target>
ndai3c9e0722006-10-28 05:43:50 +000095
david_williams13d378c2007-08-22 04:04:54 +000096 <target name="sync">
ndai3c9e0722006-10-28 05:43:50 +000097
98
99
david_williams13d378c2007-08-22 04:04:54 +0000100 <echo message="RSYNC to: ${uploadRemoteDirectory}" />
ndai3c9e0722006-10-28 05:43:50 +0000101
david_williams13d378c2007-08-22 04:04:54 +0000102 <exec executable="rsync">
103 <arg
104 line="-e ssh -Cavz ${whatisfixed.dir} ${uploadUser}@${uploadServer}:${uploadRemoteDirectory}" />
105 </exec>
106 </target>
107
ndai3c9e0722006-10-28 05:43:50 +0000108
109
110</project>