david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 1 | <project name="checkout" default="checkout" basedir="."> |
david_williams | bb0fc61 | 2006-05-19 10:28:20 +0000 | [diff] [blame] | 2 | |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 3 | <!-- = = = standard properties pattern = = = --> |
david_williams | a7f68be | 2007-06-20 02:17:13 +0000 | [diff] [blame^] | 4 | <!-- |
| 5 | Note to be cross-platform, "environment variables" are only appropriate for |
| 6 | some variables, e.g. ones we set, since properties are case sensitive, even if |
| 7 | the environment variables on your operating system are not, e.g. it will |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 8 | be ${env.Path} not ${env.PATH} on Windows --> |
| 9 | <property environment="env" /> |
david_williams | 2f3f3c2 | 2007-02-17 23:56:37 +0000 | [diff] [blame] | 10 | |
david_williams | a7f68be | 2007-06-20 02:17:13 +0000 | [diff] [blame^] | 11 | <!-- |
| 12 | Let users override standard properties, if desired. |
| 13 | If directory, file, or some properties do not exist, |
| 14 | then standard properties will be used. |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 15 | --> |
| 16 | <property file="${env.LOCAL_BUILD_PROPERTIES_DIR}/${ant.project.name}.properties" /> |
david_williams | bb0fc61 | 2006-05-19 10:28:20 +0000 | [diff] [blame] | 17 | |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 18 | <!-- load standard properties for production environment --> |
| 19 | <property file="${env.STANDARD_PROPERTIES_DIR}/${ant.project.name}.properties" /> |
| 20 | <!-- = = = end standard properties pattern = = = --> |
| 21 | |
david_williams | f64f022 | 2006-11-28 21:37:13 +0000 | [diff] [blame] | 22 | <!-- if not otherwise set, the following are good default values --> |
david_williams | 2f3f3c2 | 2007-02-17 23:56:37 +0000 | [diff] [blame] | 23 | <property name="checkout.wtpbuilder.clean" |
| 24 | value="true" /> |
david_williams | f64f022 | 2006-11-28 21:37:13 +0000 | [diff] [blame] | 25 | <property name="mapVersionTag" value="HEAD" /> |
david_williams | e997dab | 2006-11-29 03:52:45 +0000 | [diff] [blame] | 26 | |
| 27 | <property name="mapCvsRoot" |
| 28 | value=":${cvsProtocol}:${cvsUser}@${cvsServer}:${cvsRoot}" /> |
david_williams | 2f3f3c2 | 2007-02-17 23:56:37 +0000 | [diff] [blame] | 29 | |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 30 | <property name="codir" |
| 31 | value="${env.BUILD_HOME}/build-node/checkout/${checkoutprojectname}" /> |
david_williams | bb0fc61 | 2006-05-19 10:28:20 +0000 | [diff] [blame] | 32 | |
| 33 | |
| 34 | |
david_williams | a7f68be | 2007-06-20 02:17:13 +0000 | [diff] [blame^] | 35 | <echo message="checkoutprojectname: ${checkoutprojectname}" /> |
david_williams | 42023ed | 2006-11-28 19:09:40 +0000 | [diff] [blame] | 36 | <target name="checkout" if="checkoutprojectname"> |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 37 | <!-- we always check and init the builder --> |
| 38 | <antcall target="getwtpbuilder" /> |
| 39 | <!-- and projects can do more if needed. --> |
| 40 | <antcall target="${checkoutprojectname}" /> |
| 41 | </target> |
david_williams | bb0fc61 | 2006-05-19 10:28:20 +0000 | [diff] [blame] | 42 | |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 43 | <target name="wtp-R2.0-N"> |
david_williams | bb0fc61 | 2006-05-19 10:28:20 +0000 | [diff] [blame] | 44 | |
david_williams | a7f68be | 2007-06-20 02:17:13 +0000 | [diff] [blame^] | 45 | <!-- |
| 46 | do not need, since we do nightly builds "on demand" only |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 47 | <cvs quiet="true" cvsRoot="${mapCvsRoot}" package="${wst}" dest="${codir}" /> |
| 48 | <cvs quiet="true" cvsRoot="${mapCvsRoot}" package="${jst}" dest="${codir}" /> |
| 49 | --> |
david_williams | bb0fc61 | 2006-05-19 10:28:20 +0000 | [diff] [blame] | 50 | |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 51 | </target> |
david_williams | a7f68be | 2007-06-20 02:17:13 +0000 | [diff] [blame^] | 52 | <target name="retest-wtp-R2.0-N"> |
| 53 | <antcall target="wtp-wtp-R2.0-N" /> |
| 54 | </target> |
david_williams | bb0fc61 | 2006-05-19 10:28:20 +0000 | [diff] [blame] | 55 | |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 56 | <target name="wtp-R2.0-S"> |
| 57 | <cvs quiet="true" |
| 58 | cvsRoot="${mapCvsRoot}" |
| 59 | package="releng-jsf" |
| 60 | dest="${codir}" |
| 61 | tag="HEAD" /> |
| 62 | <cvs quiet="true" |
| 63 | cvsRoot="${mapCvsRoot}" |
| 64 | package="releng.dali" |
| 65 | dest="${codir}" |
| 66 | tag="HEAD" /> |
| 67 | </target> |
david_williams | a7f68be | 2007-06-20 02:17:13 +0000 | [diff] [blame^] | 68 | <target name="retest-wtp-R2.0-S"> |
| 69 | <antcall target="wtp-R2.0-S" /> |
| 70 | </target> |
| 71 | |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 72 | <target name="wtp-R2.0-I"> |
| 73 | <cvs quiet="true" |
| 74 | cvsRoot="${mapCvsRoot}" |
| 75 | package="releng-jsf" |
| 76 | dest="${codir}" |
| 77 | tag="HEAD" /> |
| 78 | <cvs quiet="true" |
| 79 | cvsRoot="${mapCvsRoot}" |
| 80 | package="releng.dali" |
| 81 | dest="${codir}" |
| 82 | tag="HEAD" /> |
| 83 | </target> |
david_williams | a7f68be | 2007-06-20 02:17:13 +0000 | [diff] [blame^] | 84 | <target name="retest-wtp-R2.0-I"> |
| 85 | <antcall target="wtp-R2.0-I" /> |
| 86 | </target> |
| 87 | |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 88 | <target name="wtp-R2.0-R"> |
| 89 | <cvs quiet="true" |
| 90 | cvsRoot="${mapCvsRoot}" |
| 91 | package="releng-jsf" |
| 92 | dest="${codir}" |
| 93 | tag="HEAD" /> |
| 94 | <cvs quiet="true" |
| 95 | cvsRoot="${mapCvsRoot}" |
| 96 | package="releng.dali" |
| 97 | dest="${codir}" |
| 98 | tag="HEAD" /> |
| 99 | </target> |
david_williams | a7f68be | 2007-06-20 02:17:13 +0000 | [diff] [blame^] | 100 | <target name="retest-wtp-R2.0-R"> |
| 101 | <antcall target="wtp-R2.0-R" /> |
| 102 | </target> |
| 103 | |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 104 | |
| 105 | <target name="wtp-R1.5-M"> |
| 106 | <cvs quiet="true" |
| 107 | cvsRoot="${mapCvsRoot}" |
| 108 | package="${releng}" |
| 109 | dest="${codir}" |
| 110 | tag="R1_5_maintenance" /> |
| 111 | </target> |
david_williams | a7f68be | 2007-06-20 02:17:13 +0000 | [diff] [blame^] | 112 | <target name="retest-wtp-R1.5-M"> |
| 113 | <antcall target="wtp-R1.5-M" /> |
| 114 | </target> |
| 115 | |
david_williams | c249d49 | 2007-04-14 04:11:39 +0000 | [diff] [blame] | 116 | <target name="jem-R1.5-M"> |
| 117 | <cvs quiet="true" |
| 118 | cvsRoot="${mapCvsRoot}" |
| 119 | package="${releng}" |
| 120 | dest="${codir}" |
| 121 | tag="R1_5_maintenance" /> |
| 122 | </target> |
david_williams | 0ef9b0c | 2006-12-04 23:46:40 +0000 | [diff] [blame] | 123 | <target name="patches-R1.5-P"> |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 124 | <cvs quiet="true" |
| 125 | cvsRoot="${mapCvsRoot}" |
| 126 | package="${releng}" |
| 127 | dest="${codir}" |
| 128 | tag="R1_5_maintenance_patches" /> |
| 129 | </target> |
| 130 | |
david_williams | e3efab5 | 2007-02-26 04:09:53 +0000 | [diff] [blame] | 131 | <target name="wtp-buildTools-R2.0-T"> |
| 132 | <cvs quiet="true" |
| 133 | cvsRoot="${mapCvsRoot}" |
| 134 | package="releng" |
| 135 | dest="${codir}" |
| 136 | tag="HEAD" /> |
| 137 | </target> |
david_williams | bb0fc61 | 2006-05-19 10:28:20 +0000 | [diff] [blame] | 138 | |
david_williams | a7f68be | 2007-06-20 02:17:13 +0000 | [diff] [blame^] | 139 | |
david_williams | 948bf55 | 2007-02-26 05:17:22 +0000 | [diff] [blame] | 140 | <target name="wst-R2.0-I"> |
| 141 | <cvs quiet="true" |
| 142 | cvsRoot="${mapCvsRoot}" |
| 143 | package="releng" |
| 144 | dest="${codir}" |
| 145 | tag="HEAD" /> |
| 146 | </target> |
david_williams | bb0fc61 | 2006-05-19 10:28:20 +0000 | [diff] [blame] | 147 | |
david_williams | a7f68be | 2007-06-20 02:17:13 +0000 | [diff] [blame^] | 148 | |
| 149 | |
| 150 | |
| 151 | <!-- |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 152 | The order of execution of these three worker targets |
david_williams | a7f68be | 2007-06-20 02:17:13 +0000 | [diff] [blame^] | 153 | is critical, check.clean, initBuilders, and |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 154 | then getwtpbuilder. |
| 155 | --> |
| 156 | <target name="getwtpbuilder" |
| 157 | depends="check.clean,initBuilders" |
| 158 | if="doClean"> |
david_williams | a7f68be | 2007-06-20 02:17:13 +0000 | [diff] [blame^] | 159 | <!-- This is a special property file, that contains (only) the |
| 160 | value of wtpBuilderVersion. Then, that version of the builder |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 161 | is fetched to control the rest of the build --> |
| 162 | <property file="${codir}/${releng}/maps/build.cfg" /> |
| 163 | <delete dir="${codir}/releng.wtpbuilder" |
| 164 | failonerror="false" /> |
jlanuti | 9eb781e | 2007-04-17 15:02:42 +0000 | [diff] [blame] | 165 | <echo message="Version tag for ${releng.wtpbuilder} is: ${wtpBuilderVersion}" /> |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 166 | <cvs quiet="true" |
| 167 | cvsRoot="${mapCvsRoot}" |
jlanuti | 9eb781e | 2007-04-17 15:02:42 +0000 | [diff] [blame] | 168 | package="${releng.wtpbuilder}" |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 169 | dest="${codir}" |
| 170 | tag="${wtpBuilderVersion}" /> |
| 171 | </target> |
david_williams | bb0fc61 | 2006-05-19 10:28:20 +0000 | [diff] [blame] | 172 | |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 173 | <target name="check.clean"> |
david_williams | 2f3f3c2 | 2007-02-17 23:56:37 +0000 | [diff] [blame] | 174 | <echo message="checkout.wtpbuilder.clean: ${checkout.wtpbuilder.clean}" /> |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 175 | <condition property="doClean"> |
| 176 | <equals arg1="${checkout.wtpbuilder.clean}" |
david_williams | 2f3f3c2 | 2007-02-17 23:56:37 +0000 | [diff] [blame] | 177 | arg2="true" |
| 178 | trim="true" |
| 179 | casesensitive="false" /> |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 180 | </condition> |
| 181 | </target> |
david_williams | bb0fc61 | 2006-05-19 10:28:20 +0000 | [diff] [blame] | 182 | |
david_williams | a7f68be | 2007-06-20 02:17:13 +0000 | [diff] [blame^] | 183 | <target name="initBuilders" depends="check.clean" if="doClean"> |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 184 | <echo message="Version tag for ${releng}: ${mapVersionTag}" /> |
| 185 | <cvs quiet="true" |
| 186 | cvsRoot="${mapCvsRoot}" |
| 187 | package="${releng}" |
| 188 | dest="${codir}" |
| 189 | tag="${mapVersionTag}" /> |
| 190 | </target> |
david_williams | bb0fc61 | 2006-05-19 10:28:20 +0000 | [diff] [blame] | 191 | |
| 192 | |
| 193 | </project> |
| 194 | |