equal
deleted
inserted
replaced
6 <#assign dollar = "$"/> |
6 <#assign dollar = "$"/> |
7 <#assign count = 0 /> |
7 <#assign count = 0 /> |
8 |
8 |
9 <!-- remove previous version of BOM file (if exists) --> |
9 <!-- remove previous version of BOM file (if exists) --> |
10 <target name="reset-bom-sources-csv"> |
10 <target name="reset-bom-sources-csv"> |
11 <delete file="${ant['build.drive']}/output/BOM/sources.csv" quiet="true"/> |
11 <delete file="${ant['build.drive']}/output/logs/BOM/sources.csv" quiet="true"/> |
12 </target> |
12 </target> |
13 |
13 |
14 <#list data as pkg_detail> |
14 <#list data as pkg_detail> |
15 <target name="sf-prebuild-${count}"> |
15 <target name="sf-prebuild-${count}"> |
16 <#if (count > 0) > |
16 <#if (count > 0) > |
30 </hlm:scm> |
30 </hlm:scm> |
31 |
31 |
32 <!-- record info on source code repo/rev in BOM file --> |
32 <!-- record info on source code repo/rev in BOM file --> |
33 <exec executable="hg" dir="${ant['build.drive']}${pkg_detail.dst}" outputproperty="sf.sourcesync.${count}.rev"> |
33 <exec executable="hg" dir="${ant['build.drive']}${pkg_detail.dst}" outputproperty="sf.sourcesync.${count}.rev"> |
34 <arg value="identify"/> |
34 <arg value="identify"/> |
|
35 <arg value="-n"/> |
|
36 </exec> |
|
37 <exec executable="hg" dir="${ant['build.drive']}${pkg_detail.dst}" outputproperty="sf.sourcesync.${count}.checksum"> |
|
38 <arg value="identify"/> |
35 <arg value="-i"/> |
39 <arg value="-i"/> |
36 </exec> |
40 </exec> |
37 <echo message="dir ${ant['build.drive']}${pkg_detail.dst} : revision ${dollar}{sf.sourcesync.${count}.rev}"/> |
41 <echo message="dir ${ant['build.drive']}${pkg_detail.dst} : revision ${dollar}{sf.sourcesync.${count}.rev}:${dollar}{sf.sourcesync.${count}.checksum}"/> |
38 <exec executable="cmd" output="${ant['build.drive']}/output/BOM/sources.csv" append="true"> |
42 <exec executable="cmd" output="${ant['build.drive']}/output/logs/BOM/sources.csv" append="true"> |
39 <arg value="/c"/> |
43 <arg value="/c"/> |
40 <arg value="echo"/> |
44 <arg value="echo"/> |
41 <arg value="${pkg_detail.source},${pkg_detail.dst},${dollar}{sf.sourcesync.${count}.rev}"/> |
45 <arg value="${pkg_detail.source},${pkg_detail.dst},${dollar}{sf.sourcesync.${count}.rev}:${dollar}{sf.sourcesync.${count}.checksum}"/> |
42 </exec> |
46 </exec> |
43 |
47 |
44 </sequential> |
48 </sequential> |
45 </target> |
49 </target> |
46 <#assign fileset = "${fileset}" + "<fileset dir=\"${ant['build.drive']}${pkg_detail.dst}\" includes=\"${pkg_detail.pattern}\"/>" /> |
50 <#assign fileset = "${fileset}" + "<fileset dir=\"${ant['build.drive']}${pkg_detail.dst}\" includes=\"${pkg_detail.pattern}\"/>" /> |