# HG changeset patch # User Shabe Razvi # Date 1279042310 -3600 # Node ID e08bbc2db6358fbe17546ccf717e7c1f3f24bb38 # Parent 7c5cbd40d331a27ac8e07f74ac35c42ce89634aa Implement enhancement Bug 3222 - Enable Helium to set diamonds status other than "succeeded" or "failed" diff -r 7c5cbd40d331 -r e08bbc2db635 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);