buildframework/helium/external/helium-antlib/diamonds/src/com/nokia/helium/diamonds/DiamondsPostBuildStatusUpdate.java
branchhelium-7.0.x
changeset 614 e08bbc2db635
parent 179 d8ac696cc51f
--- a/buildframework/helium/external/helium-antlib/diamonds/src/com/nokia/helium/diamonds/DiamondsPostBuildStatusUpdate.java	Fri Jun 25 11:41:24 2010 +0100
+++ b/buildframework/helium/external/helium-antlib/diamonds/src/com/nokia/helium/diamonds/DiamondsPostBuildStatusUpdate.java	Tue Jul 13 18:31:50 2010 +0100
@@ -83,8 +83,12 @@
             sourceList.add(new PropertiesSource("ant", getProject().getProperties()));
             sourceList.add(new PropertiesSource("diamonds", tempProperties));
             outputFile = DiamondsConfig.getOutputDir() + File.separator + "diamonds-status.xml";
-            templateFile = "diamonds_status.xml.ftl";
-            templateProcessor.convertTemplate(DiamondsConfig.getTemplateDir(), templateFile, outputFile, sourceList);
+			
+            // Enhancement SF Bug 3222
+            if (!(new File(outputFile)).exists()) {
+              templateFile = "diamonds_status.xml.ftl";
+              templateProcessor.convertTemplate(DiamondsConfig.getTemplateDir(), templateFile, outputFile, sourceList);
+            }
 
             /* send the generated XML file for diamonds client to update the build status into Diamonds */
             log.debug("[DiamondsPostBuildStatusUpdate] => sending data to diamonds ..." + outputFile);