Adding asmdiff.shade

This commit is contained in:
Pranav K 2014-03-25 22:19:14 -07:00
parent 1d507e9b47
commit ccaaaeb392
1 changed files with 25 additions and 0 deletions

25
build/_asmdiff.shade Normal file
View File

@ -0,0 +1,25 @@
default ASM_DIFF='${Environment.GetEnvironmentVariable("ASM_DIFF")}'
default outFile = "artifacts\default.html"
@{
if (String.IsNullOrEmpty(ASM_DIFF))
{
Log.Warn("ASM_DIFF environment variable not set.");
Environment.Exit(-1);
return;
}
}
exec program='${ASM_DIFF}' commandline='${oldBinariesDir} ${newBinariesDir} -adm -out:${outFile}'
@{
if (!String.IsNullOrEmpty(Environment.GetEnvironmentVariable("TEAMCITY_VERSION")))
{
var message = File.ReadAllText(outFile)
.Replace("|", "||")
.Replace("'", "|'")
.Replace("\r", "|r")
.Replace("\n", "|n")
.Replace("]", "|]");
Log.Info("##teamcity[message text='" + message + "' status='WARNING']");
}
}