blob: c518a7ebb51f4625bdd63e7b89cd4458c95456fb [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 <!-- load standard properties for production environment -->
david_williams13d378c2007-08-22 04:04:54 +000023 <property
24 file="${env.STANDARD_PROPERTIES_DIR}/${ant.project.name}.properties" />
david_williams42f9b242006-11-27 18:45:14 +000025 <!-- = = = end standard properties pattern = = = -->
ndai3c9e0722006-10-28 05:43:50 +000026
david_williams13d378c2007-08-22 04:04:54 +000027 <target
28 name="whatisfixed"
29 depends="clean">
ndai3c9e0722006-10-28 05:43:50 +000030
31
32
david_williams13d378c2007-08-22 04:04:54 +000033 <mkdir dir="${whatisfixed.workdir}" />
34 <antcall target="releng" />
ndai3c9e0722006-10-28 05:43:50 +000035
david_williams13d378c2007-08-22 04:04:54 +000036 <!-- create what-is-fixed summary files -->
37 <ant antfile="${wtpBuilder}">
38 <property
39 name="wtp.builder.home"
40 value="${whatisfixed.workdir}/releng.wtpbuilder" />
41 <property
42 name="buildBranch"
43 value="${buildBranch}" />
44 <property
45 name="wtpbuilder.whatisfixed.properties.file"
46 value="${basedir}/whatisfixed.properties" />
47 </ant>
ndai3c9e0722006-10-28 05:43:50 +000048
david_williams13d378c2007-08-22 04:04:54 +000049 <antcall target="sync" />
ndai3c9e0722006-10-28 05:43:50 +000050
david_williams13d378c2007-08-22 04:04:54 +000051 </target>
ndai3c9e0722006-10-28 05:43:50 +000052
david_williams13d378c2007-08-22 04:04:54 +000053 <target name="releng">
ndai3c9e0722006-10-28 05:43:50 +000054
david_williams13d378c2007-08-22 04:04:54 +000055 <available
56 file="${whatisfixed.workdir}/releng/maps/dependencies.properties"
57 property="map.exists" />
58 <available
59 file="${whatisfixed.workdir}/releng.wtpbuilder/scripts/dependency/build.xml"
60 property="releng.exists" />
61 <antcall target="checkout-maps" />
62 <antcall target="getwtpbuilder" />
63 </target>
ndai3c9e0722006-10-28 05:43:50 +000064
david_williams13d378c2007-08-22 04:04:54 +000065 <target
66 name="checkout-maps"
67 unless="map.exists">
68 <cvs
69 quiet="${env.CVS_QUIET}"
70 reallyquiet="${env.CVS_REALLY_QUIET}"
71 cvsRoot="${mapCvsRoot}"
72 package="releng/maps/build.cfg"
73 dest="${whatisfixed.workdir}"
74 tag="${wtp.cvsTag}" />
75 </target>
ndai3c9e0722006-10-28 05:43:50 +000076
david_williams13d378c2007-08-22 04:04:54 +000077 <target
78 name="getwtpbuilder"
79 unless="releng.exists">
80 <property file="${whatisfixed.workdir}/releng/maps/build.cfg" />
81 <delete
82 dir="${whatisfixed.workdir}/releng.wtpbuilder"
83 failonerror="false" />
84 <echo
85 message="Version tag for releng.wtpbuilder is: ${wtpBuilderVersion}" />
86 <cvs
87 quiet="${env.CVS_QUIET}"
88 reallyquiet="${env.CVS_REALLY_QUIET}"
89 cvsRoot="${mapCvsRoot}"
90 package="releng.wtpbuilder"
91 dest="${whatisfixed.workdir}"
92 tag="${wtpBuilderVersion}" />
93 </target>
ndai3c9e0722006-10-28 05:43:50 +000094
david_williams13d378c2007-08-22 04:04:54 +000095 <target name="clean">
96 <delete dir="${whatisfixed.workdir}" />
97 </target>
ndai3c9e0722006-10-28 05:43:50 +000098
david_williams13d378c2007-08-22 04:04:54 +000099 <target name="sync">
ndai3c9e0722006-10-28 05:43:50 +0000100
101
102
david_williams13d378c2007-08-22 04:04:54 +0000103 <echo message="RSYNC to: ${uploadRemoteDirectory}" />
ndai3c9e0722006-10-28 05:43:50 +0000104
david_williams13d378c2007-08-22 04:04:54 +0000105 <exec executable="rsync">
106 <arg
107 line="-e ssh -Cavz ${whatisfixed.dir} ${uploadUser}@${uploadServer}:${uploadRemoteDirectory}" />
108 </exec>
109 </target>
110
ndai3c9e0722006-10-28 05:43:50 +0000111
112
113</project>