79 <target name="sf-prebuild"> |
79 <target name="sf-prebuild"> |
80 <echo>[SF-PREBUILD]</echo> |
80 <echo>[SF-PREBUILD]</echo> |
81 |
81 |
82 <!-- create BOM dir --> |
82 <!-- create BOM dir --> |
83 <mkdir dir="${build.drive}/output/logs/BOM"/> |
83 <mkdir dir="${build.drive}/output/logs/BOM"/> |
|
84 |
|
85 <!-- record project and config information in BOM files --> |
|
86 <delete file="${build.drive}/output/logs/BOM/config.csv" quiet="true"/> |
|
87 <exec executable="hg" dir="${sf.config.dir}" outputproperty="sf.job.bom.config.repo"> |
|
88 <arg value="showconfig"/> |
|
89 <arg value="paths.default"/> |
|
90 </exec> |
|
91 <exec executable="hg" dir="${sf.config.dir}" outputproperty="sf.job.bom.config.rev"> |
|
92 <arg value="identify"/> |
|
93 <arg value="-n"/> |
|
94 </exec> |
|
95 <exec executable="hg" dir="${sf.config.dir}" outputproperty="sf.job.bom.config.checksum"> |
|
96 <arg value="identify"/> |
|
97 <arg value="-i"/> |
|
98 </exec> |
|
99 <echo message="dir ${sf.config.dir} : revision ${sf.job.bom.config.rev}:${sf.job.bom.config.checksum}"/> |
|
100 <exec executable="cmd" output="${ant['build.drive']}/output/logs/BOM/config.csv" append="true"> |
|
101 <arg value="/c"/> |
|
102 <arg value="echo"/> |
|
103 <arg value="${sf.job.bom.config.repo},sf-config,${sf.job.bom.config.rev}:${sf.job.bom.config.checksum}"/> |
|
104 </exec> |
|
105 <delete file="${build.drive}/output/logs/BOM/project.csv" quiet="true"/> |
|
106 <exec executable="hg" dir="${sf.config.dir}/../build/config" outputproperty="sf.job.bom.project.repo"> |
|
107 <arg value="showconfig"/> |
|
108 <arg value="paths.default"/> |
|
109 </exec> |
|
110 <exec executable="hg" dir="${sf.config.dir}/../build/config" outputproperty="sf.job.bom.project.rev"> |
|
111 <arg value="identify"/> |
|
112 <arg value="-n"/> |
|
113 </exec> |
|
114 <exec executable="hg" dir="${sf.config.dir}/../build/config" outputproperty="sf.job.bom.project.checksum"> |
|
115 <arg value="identify"/> |
|
116 <arg value="-i"/> |
|
117 </exec> |
|
118 <echo message="dir ${sf.config.dir}/../build/config : revision ${sf.job.bom.project.rev}:${sf.job.bom.project.checksum}"/> |
|
119 <exec executable="cmd" output="${ant['build.drive']}/output/logs/BOM/project.csv" append="true"> |
|
120 <arg value="/c"/> |
|
121 <arg value="echo"/> |
|
122 <arg value="${sf.job.bom.project.repo},build/config,${sf.job.bom.project.rev}:${sf.job.bom.project.checksum}"/> |
|
123 </exec> |
84 |
124 |
85 <if> |
125 <if> |
86 <istrue value="${sf.spec.baseline.enable}" /> |
126 <istrue value="${sf.spec.baseline.enable}" /> |
87 <then> |
127 <then> |
88 |
128 |