summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.BuildTasks/Purge.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-02-16 21:03:15 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2010-02-16 21:03:15 -0800
commitcc2bc923dffa3c5e6b0314a9aa0ab7811e75b0b9 (patch)
treedcb3689e0775415508d6639801baf8595bde6148 /src/DotNetOpenAuth.BuildTasks/Purge.cs
parent938cf40cb12d9bd96cc16f9ef33447facf93d82d (diff)
parentc0a8422ead83b8877d881399b09194c17de7bd55 (diff)
downloadDotNetOpenAuth-cc2bc923dffa3c5e6b0314a9aa0ab7811e75b0b9.zip
DotNetOpenAuth-cc2bc923dffa3c5e6b0314a9aa0ab7811e75b0b9.tar.gz
DotNetOpenAuth-cc2bc923dffa3c5e6b0314a9aa0ab7811e75b0b9.tar.bz2
Split up the massive, single-proc build build.proj file into many projects.
Merge branch 'buildprojBreakup' into v3.4
Diffstat (limited to 'src/DotNetOpenAuth.BuildTasks/Purge.cs')
-rw-r--r--src/DotNetOpenAuth.BuildTasks/Purge.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/DotNetOpenAuth.BuildTasks/Purge.cs b/src/DotNetOpenAuth.BuildTasks/Purge.cs
index e19e485..cf1a214 100644
--- a/src/DotNetOpenAuth.BuildTasks/Purge.cs
+++ b/src/DotNetOpenAuth.BuildTasks/Purge.cs
@@ -7,12 +7,12 @@
namespace DotNetOpenAuth.BuildTasks {
using System;
using System.Collections.Generic;
+ using System.IO;
using System.Linq;
using System.Text;
- using Microsoft.Build.Utilities;
- using Microsoft.Build.Framework;
- using System.IO;
using System.Text.RegularExpressions;
+ using Microsoft.Build.Framework;
+ using Microsoft.Build.Utilities;
/// <summary>
/// Purges directory trees of all directories and files that are not on a whitelist.
@@ -40,6 +40,7 @@ namespace DotNetOpenAuth.BuildTasks {
/// <summary>
/// Gets or sets the files that should be NOT be purged.
/// </summary>
+ [Required]
public ITaskItem[] IntendedFiles { get; set; }
/// <summary>
@@ -82,7 +83,7 @@ namespace DotNetOpenAuth.BuildTasks {
}
private static string NormalizePath(string path) {
- return Regex.Replace(path, @"\\+", @"\");
+ return Path.GetFullPath(Regex.Replace(path, @"\\+", @"\"));
}
}
}