david_williams | 1cc549d | 2007-08-29 01:28:19 +0000 | [diff] [blame^] | 1 | <project name="cc_copyArtifacts" default="copyArtifacts" basedir="."> |
| 2 | |
| 3 | |
| 4 | <!-- = = = standard properties pattern = = = --> |
| 5 | <!-- |
| 6 | Note to be cross-platform, "environment variables" are only appropriate for |
| 7 | some variables, e.g. ones we set, since properties are case sensitive, even if |
| 8 | the environment variables on your operating system are not, e.g. it will |
| 9 | be ${env.Path} not ${env.PATH} on Windows --> |
| 10 | <property environment="env" /> |
| 11 | |
| 12 | <!-- |
| 13 | Let users override standard properties, if desired. |
| 14 | If directory, file, or some properties do not exist, |
| 15 | then standard properties will be used. |
| 16 | --> |
| 17 | <property file="${env.LOCAL_BUILD_PROPERTIES_DIR}/${ant.project.name}.properties" /> |
| 18 | |
| 19 | <!-- load standard properties for production environment --> |
| 20 | <property file="${env.STANDARD_PROPERTIES_DIR}/${ant.project.name}.properties" /> |
| 21 | <!-- = = = end standard properties pattern = = = --> |
| 22 | |
| 23 | |
| 24 | |
| 25 | <property name="checkoutprojectname" value="${projectname}" /> |
| 26 | |
| 27 | <target name="copyArtifacts"> |
| 28 | |
| 29 | <!-- set main builder file name, based on distribution, buildBranch and build type --> |
| 30 | <property name="wtpBuilder" value="${env.BUILD_HOME}/build-node/checkout/${checkoutprojectname}/releng.wtpbuilder/build.xml" /> |
| 31 | |
| 32 | <!-- we do all this redirection just to get proper build label/time stamp, |
| 33 | such as I-I2007xxxxx-2007xxxxx |
| 34 | there must be, obviously, an easier way :) --> |
| 35 | <ant antfile="${wtpBuilder}" target="copyArtifacts"> |
| 36 | <property name="localStampedArtifactsDirectory" value="${localArtifactsDirectory}/${cctimestamp}"/> |
| 37 | </ant> |
| 38 | </target> |
| 39 | |
| 40 | |
| 41 | |
| 42 | </project> |