Implement enhancement Bug 3222 - Enable Helium to set diamonds status other than "succeeded" or "failed"
--- 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);