david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 1 | <project |
| 2 | name="whatisfixed" |
| 3 | default="whatisfixed" |
| 4 | basedir="."> |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 5 | |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 6 | <!-- = = = standard properties pattern = = = --> |
| 7 | <!-- |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 8 | Note to be cross-platform, "environment variables" are only appropriate for |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 9 | 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_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 13 | |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 14 | <!-- |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 15 | 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" /> |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 21 | |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 22 | <!-- load standard properties for production environment --> |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 23 | <property |
| 24 | file="${env.STANDARD_PROPERTIES_DIR}/${ant.project.name}.properties" /> |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 25 | <!-- = = = end standard properties pattern = = = --> |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 26 | |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 27 | <target |
| 28 | name="whatisfixed" |
| 29 | depends="clean"> |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 30 | |
| 31 | |
| 32 | |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 33 | <mkdir dir="${whatisfixed.workdir}" /> |
| 34 | <antcall target="releng" /> |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 35 | |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 36 | <!-- 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> |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 48 | |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 49 | <antcall target="sync" /> |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 50 | |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 51 | </target> |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 52 | |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 53 | <target name="releng"> |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 54 | |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 55 | <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> |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 64 | |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 65 | <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> |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 76 | |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 77 | <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> |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 94 | |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 95 | <target name="clean"> |
| 96 | <delete dir="${whatisfixed.workdir}" /> |
| 97 | </target> |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 98 | |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 99 | <target name="sync"> |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 100 | |
| 101 | |
| 102 | |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 103 | <echo message="RSYNC to: ${uploadRemoteDirectory}" /> |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 104 | |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 105 | <exec executable="rsync"> |
| 106 | <arg |
| 107 | line="-e ssh -Cavz ${whatisfixed.dir} ${uploadUser}@${uploadServer}:${uploadRemoteDirectory}" /> |
| 108 | </exec> |
| 109 | </target> |
| 110 | |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 111 | |
| 112 | |
| 113 | </project> |