sf-brag-to-diamonds - Only copy over the Brag XML if '${sf.spec.publish.enable}' is true.
authorMattD <mattd@symbian.org>
Mon, 12 Oct 2009 10:59:47 +0100
changeset 640 5ad0657305e8
parent 639 9b547c4a9812
child 641 3a6cba6e7541
sf-brag-to-diamonds - Only copy over the Brag XML if '${sf.spec.publish.enable}' is true.
common/build.postbuild.xml
--- a/common/build.postbuild.xml	Mon Oct 12 10:42:19 2009 +0100
+++ b/common/build.postbuild.xml	Mon Oct 12 10:59:47 2009 +0100
@@ -522,14 +522,15 @@
             <arg value="-OUT"/>
             <arg value="${temp.build.dir}/bragForDiamonds.xml"/>
         </java>
-        <!-- Make sure that the summary directory is available to display the BRAG link -->
-        <mkdir  dir="${publish.dir}/summary/"/>
-        <copy todir="${publish.dir}/summary/" preservelastmodified="true" failonerror="false">
-           <fileset dir="${build.log.dir}/summary/"><include name="*.*"/></fileset>
-        </copy>
         <if>
             <istrue value="${sf.spec.publish.enable}"/>
             <then>
+                <!-- Make sure that the summary directory is available to display the BRAG link -->
+                <mkdir  dir="${publish.dir}/summary/"/>
+                <copy todir="${publish.dir}/summary/" preservelastmodified="true" failonerror="false">
+                   <fileset dir="${build.log.dir}/summary/"><include name="*.*"/></fileset>
+                </copy>
+
                 <!-- Try to obtain the diamonds ID for this build -->
                 <if>
                     <not><isset property="diamonds.build.id"/></not>