blob: c24ff3480703730c5edc37cc87c0362663ee87a8 [file] [log] [blame]
david_williamsb96b6732007-09-20 21:49:28 +00001<project name="cc_copyArtifacts"
2 default="copyArtifacts"
3 basedir=".">
david_williams1cc549d2007-08-29 01:28:19 +00004
5
david_williamsb96b6732007-09-20 21:49:28 +00006 <!-- = = = standard properties pattern = = = -->
7 <!--
david_williams1cc549d2007-08-29 01:28:19 +00008 Note to be cross-platform, "environment variables" are only appropriate for
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 -->
david_williamsb96b6732007-09-20 21:49:28 +000012 <property environment="env" />
david_williams1cc549d2007-08-29 01:28:19 +000013
david_williamsb96b6732007-09-20 21:49:28 +000014 <!--
david_williams1cc549d2007-08-29 01:28:19 +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 -->
david_williamsb96b6732007-09-20 21:49:28 +000019 <property file="${env.LOCAL_BUILD_PROPERTIES_DIR}/${ant.project.name}.properties" />
david_williams1cc549d2007-08-29 01:28:19 +000020
david_williamsb96b6732007-09-20 21:49:28 +000021 <!-- load standard properties for production environment -->
22 <property file="${env.STANDARD_PROPERTIES_DIR}/${ant.project.name}.properties" />
23 <!-- = = = end standard properties pattern = = = -->
david_williams1cc549d2007-08-29 01:28:19 +000024
25
26
david_williamsb96b6732007-09-20 21:49:28 +000027 <property name="checkoutprojectname"
28 value="${projectname}" />
david_williams1cc549d2007-08-29 01:28:19 +000029
30
david_williamsb96b6732007-09-20 21:49:28 +000031 <target name="copyArtifacts" depends="init">
32 <mkdir dir="${localStampedArtifactsDirectory}" />
33 <mkdir dir="${localStampedArtifactsDirectory}/${buildLabel}" />
34 <copy todir="${localStampedArtifactsDirectory}/${buildLabel}"
35 overwrite="true">
36 <fileset dir="${buildDirectory}/${buildLabel}" />
37 </copy>
38 </target>
39
40 <target name="init">
41
42 <property name="labelfile"
43 value="${env.BUILD_HOME}/projects/${projectname}/workdir/label.properties" />
44
45 <available file="${labelfile}"
46 property="labelfileavailable" />
47 <fail unless="labelfileavailable" />
48 <property file="${labelfile}" />
49 <property name="localStampedArtifactsDirectory"
50 value="${localArtifactsDirectory}/${cctimestamp}" />
51
52 </target>
david_williams1cc549d2007-08-29 01:28:19 +000053
54</project>