Implement enhancement Bug 3222 - Enable Helium to set diamonds status other than "succeeded" or "failed" helium-7.0.x
authorShabe Razvi <shaber@symbian.org>
Tue, 13 Jul 2010 18:31:50 +0100
branchhelium-7.0.x
changeset 614 e08bbc2db635
parent 601 7c5cbd40d331
child 615 23ca302eb377
Implement enhancement Bug 3222 - Enable Helium to set diamonds status other than "succeeded" or "failed"
buildframework/helium/external/helium-antlib/diamonds/src/com/nokia/helium/diamonds/DiamondsPostBuildStatusUpdate.java
--- 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);