common/build.xml
changeset 1057 1302574aca03
parent 1055 d3c5525768c5
child 1100 561033b10e0f
--- a/common/build.xml	Fri Jun 04 15:05:10 2010 +0100
+++ b/common/build.xml	Fri Jun 04 16:42:15 2010 +0100
@@ -153,11 +153,29 @@
     </target>
 
     <target name="sf-check-env">
-    	<!-- Dario's environment dumper -->
-    	<exec executable="perl" dir="${build.drive}/utilities/envinfo">
-            <arg value="envinfo.pl"/>
-            <arg value="-d"/>
-        </exec>
+        <echo message="Create report on environment info"/>
+        <!-- Dario's environment dumper -->
+    	  <if>
+            <isset property="sf.spec.baseline.location"/>
+            <then>
+                <exec executable="perl" dir="${build.drive}/utilities/envinfo">
+                    <arg value="envinfo.pl"/>
+                    <arg value="-r"/>
+                    <arg value="-c"/>
+                    <arg value="${sf.spec.baseline.location}"/>
+                </exec>
+            </then>
+            <else>
+                <exec executable="perl" dir="${build.drive}/utilities/envinfo">
+                    <arg value="envinfo.pl"/>
+                    <arg value="-r"/>
+                </exec>
+            </else>
+      </if>
+      <echo message="Translate \output\logs\envinfo.txt into a Diamonds file"/>
+      <exec executable="perl" dir="${build.drive}">
+          <arg value="${sf.common.config.dir}/tools/envinfo2diamonds.pl"/>
+      </exec>
     	
         <!-- Conditional location of BuildEnv.xml. Project always preferred to default -->
         <if><available file="${sf.project.location}/BuildEnv.xml"/>