diff --git a/BuildFiles/Building/SharedLabeller/SharedLabeller.cs b/BuildFiles/Building/SharedLabeller/SharedLabeller.cs index 64ac1569..f738e800 100644 --- a/BuildFiles/Building/SharedLabeller/SharedLabeller.cs +++ b/BuildFiles/Building/SharedLabeller/SharedLabeller.cs @@ -63,9 +63,12 @@ namespace ccnet.SharedLabeller.CruiseControl.plugin public string Generate(IIntegrationResult integrationResult) { + ThoughtWorks.CruiseControl.Core.Util.Log.Debug("About to read label prefix file. Filename: {0}", PrefixFile); + string prefix = System.IO.File.ReadAllText(PrefixFile).Trim(); + if (ShouldIncrementLabel(integrationResult.LastIntegration)) { - return Prefix + this.GetLabel(); + return prefix + "+" + this.GetLabel(); } else { @@ -86,9 +89,6 @@ namespace ccnet.SharedLabeller.CruiseControl.plugin /// private string GetLabel() { - ThoughtWorks.CruiseControl.Core.Util.Log.Debug("About to read label prefix file. Filename: {0}", PrefixFile); - string prefix = System.IO.File.ReadAllText (PrefixFile).Trim(); - ThoughtWorks.CruiseControl.Core.Util.Log.Debug("About to read build number file. Filename: {0}", SharedLabelFilePath); using (FileStream fileStream = File.Open(this.SharedLabelFilePath, FileMode.OpenOrCreate, diff --git a/BuildFiles/Building/ccnet.SharedLabeller.CruiseControl.plugin.dll b/BuildFiles/Building/ccnet.SharedLabeller.CruiseControl.plugin.dll index 1c9d33a3..8d8947d4 100644 Binary files a/BuildFiles/Building/ccnet.SharedLabeller.CruiseControl.plugin.dll and b/BuildFiles/Building/ccnet.SharedLabeller.CruiseControl.plugin.dll differ