blob: de806e38c1f7530dbd36dc58a75cdc7a4fb560fb [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_williamsf7354602008-01-08 04:28:04 +000025
26 <target
david_williams39c5f652008-01-02 07:08:39 +000027 name="copyArtifacts"
28 depends="init"
29 if="buildLabel">
30 <mkdir
31 dir="${localStampedArtifactsDirectory}" />
32 <mkdir
33 dir="${localStampedArtifactsDirectory}/${buildLabel}" />
34 <copy
35 todir="${localStampedArtifactsDirectory}/${buildLabel}"
36 overwrite="true">
37 <fileset
38 dir="${env.PROJECT_PROJECTS}/${projectname}/workdir/${buildLabel}" />
39 <fileset
david_williams89140712008-01-10 05:16:06 +000040 dir="${env.ANT_WORKING}/antBuilderOutput.log" />
david_williamsb96b6732007-09-20 21:49:28 +000041 </copy>
42 </target>
david_williams39c5f652008-01-02 07:08:39 +000043 <target
44 name="init">
45 <fail unless="env.PROJECT_PROJECTS" />
46 <fail unless="projectname" />
47 <property
48 name="labelfile"
49 value="${env.PROJECT_PROJECTS}/${projectname}/workdir/label.properties" />
50 <available
51 file="${labelfile}"
52 property="labelfileavailable" />
53 <fail
54 unless="labelfileavailable" />
55 <property
56 file="${labelfile}" />
57 <property
58 name="localStampedArtifactsDirectory"
59 value="${localArtifactsDirectory}/${cctimestamp}" />
david_williamsb96b6732007-09-20 21:49:28 +000060 </target>
david_williams39c5f652008-01-02 07:08:39 +000061</project>