blob: e380e32225d0cb7ac252870ceb07859b19ed6ad8 [file] [log] [blame]
david_williams39c5f652008-01-02 07:08:39 +00001<project
2 name="cc_copyArtifacts"
3 default="copyArtifacts"
4 basedir=".">
david_williams1cc549d2007-08-29 01:28:19 +00005
6
david_williamsb96b6732007-09-20 21:49:28 +00007 <!-- = = = standard properties pattern = = = -->
8 <!--
david_williams1cc549d2007-08-29 01:28:19 +00009 Note to be cross-platform, "environment variables" are only appropriate for
10 some variables, e.g. ones we set, since properties are case sensitive, even if
11 the environment variables on your operating system are not, e.g. it will
12 be ${env.Path} not ${env.PATH} on Windows -->
david_williams39c5f652008-01-02 07:08:39 +000013 <property
14 environment="env" />
david_williams1cc549d2007-08-29 01:28:19 +000015
david_williamsb96b6732007-09-20 21:49:28 +000016 <!--
david_williams1cc549d2007-08-29 01:28:19 +000017 Let users override standard properties, if desired.
18 If directory, file, or some properties do not exist,
19 then standard properties will be used.
20 -->
david_williams39c5f652008-01-02 07:08:39 +000021 <property
22 file="${env.LOCAL_BUILD_PROPERTIES_DIR}/${ant.project.name}.properties" />
david_williams1cc549d2007-08-29 01:28:19 +000023
david_williamsb96b6732007-09-20 21:49:28 +000024 <!-- = = = end standard properties pattern = = = -->
david_williams39c5f652008-01-02 07:08:39 +000025 <property
26 name="checkoutprojectname"
27 value="${projectname}" />
28 <target
29 name="copyArtifacts"
30 depends="init"
31 if="buildLabel">
32 <mkdir
33 dir="${localStampedArtifactsDirectory}" />
34 <mkdir
35 dir="${localStampedArtifactsDirectory}/${buildLabel}" />
36 <copy
37 todir="${localStampedArtifactsDirectory}/${buildLabel}"
38 overwrite="true">
39 <fileset
40 dir="${env.PROJECT_PROJECTS}/${projectname}/workdir/${buildLabel}" />
41 <fileset
42 dir="${env.ANT_WORKING}" />
david_williamsb96b6732007-09-20 21:49:28 +000043 </copy>
44 </target>
david_williams39c5f652008-01-02 07:08:39 +000045 <target
46 name="init">
47 <fail unless="env.PROJECT_PROJECTS" />
48 <fail unless="projectname" />
49 <property
50 name="labelfile"
51 value="${env.PROJECT_PROJECTS}/${projectname}/workdir/label.properties" />
52 <available
53 file="${labelfile}"
54 property="labelfileavailable" />
55 <fail
56 unless="labelfileavailable" />
57 <property
58 file="${labelfile}" />
59 <property
60 name="localStampedArtifactsDirectory"
61 value="${localArtifactsDirectory}/${cctimestamp}" />
david_williamsb96b6732007-09-20 21:49:28 +000062 </target>
david_williams39c5f652008-01-02 07:08:39 +000063</project>