diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-02-11 07:43:02 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-02-11 07:43:02 -0800 |
commit | 9aac5e6ed63693f5aad2ddf2e1e326d65018dc3f (patch) | |
tree | a8ec8293732077959a8de859d4f4f66c2e55c0ee | |
parent | 5c6ae088e09a108759242e38aba723d50d7b083e (diff) | |
download | DotNetOpenAuth-9aac5e6ed63693f5aad2ddf2e1e326d65018dc3f.zip DotNetOpenAuth-9aac5e6ed63693f5aad2ddf2e1e326d65018dc3f.tar.gz DotNetOpenAuth-9aac5e6ed63693f5aad2ddf2e1e326d65018dc3f.tar.bz2 |
Fixed Purge task to be smarter about normalizing paths.
-rw-r--r-- | lib/DotNetOpenAuth.BuildTasks.dll | bin | 71680 -> 71680 bytes | |||
-rw-r--r-- | lib/DotNetOpenAuth.BuildTasks.pdb | bin | 161280 -> 161280 bytes | |||
-rw-r--r-- | src/DotNetOpenAuth.BuildTasks/Purge.cs | 8 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/DotNetOpenAuth.BuildTasks.dll b/lib/DotNetOpenAuth.BuildTasks.dll Binary files differindex 7882acc..7218090 100644 --- a/lib/DotNetOpenAuth.BuildTasks.dll +++ b/lib/DotNetOpenAuth.BuildTasks.dll diff --git a/lib/DotNetOpenAuth.BuildTasks.pdb b/lib/DotNetOpenAuth.BuildTasks.pdb Binary files differindex 88025fc..c13cb0a 100644 --- a/lib/DotNetOpenAuth.BuildTasks.pdb +++ b/lib/DotNetOpenAuth.BuildTasks.pdb diff --git a/src/DotNetOpenAuth.BuildTasks/Purge.cs b/src/DotNetOpenAuth.BuildTasks/Purge.cs index e19e485..b14a168 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. @@ -82,7 +82,7 @@ namespace DotNetOpenAuth.BuildTasks { } private static string NormalizePath(string path) { - return Regex.Replace(path, @"\\+", @"\"); + return Path.GetFullPath(Regex.Replace(path, @"\\+", @"\")); } } } |