sf-brag-to-diamonds - Only copy over the Brag XML if '${sf.spec.publish.enable}' is true.
--- 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>