diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-02-13 11:56:14 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-02-13 11:56:14 -0800 |
commit | 6b1f72efa44b0d34c584a6551d07ab2160305aff (patch) | |
tree | 210b422d4be6e3473b3d7ab25e8a849477b025bb /src/DotNetOpenAuth.BuildTasks/CopyWithTokenSubstitution.cs | |
parent | ace8234a246953b5af8b5856c2adaf9504488e94 (diff) | |
download | DotNetOpenAuth-6b1f72efa44b0d34c584a6551d07ab2160305aff.zip DotNetOpenAuth-6b1f72efa44b0d34c584a6551d07ab2160305aff.tar.gz DotNetOpenAuth-6b1f72efa44b0d34c584a6551d07ab2160305aff.tar.bz2 |
Almost finished getting basic project template layout working.
Diffstat (limited to 'src/DotNetOpenAuth.BuildTasks/CopyWithTokenSubstitution.cs')
-rw-r--r-- | src/DotNetOpenAuth.BuildTasks/CopyWithTokenSubstitution.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth.BuildTasks/CopyWithTokenSubstitution.cs b/src/DotNetOpenAuth.BuildTasks/CopyWithTokenSubstitution.cs index e973962..5b097ab 100644 --- a/src/DotNetOpenAuth.BuildTasks/CopyWithTokenSubstitution.cs +++ b/src/DotNetOpenAuth.BuildTasks/CopyWithTokenSubstitution.cs @@ -56,7 +56,8 @@ namespace DotNetOpenAuth.BuildTasks { for (int i = 0; i < this.SourceFiles.Length; i++) { string sourcePath = this.SourceFiles[i].ItemSpec; string destPath = this.DestinationFiles[i].ItemSpec; - bool skipUnchangedFiles = bool.Parse(this.SourceFiles[i].GetMetadata("SkipUnchangedFiles")); + bool skipUnchangedFiles; + bool.TryParse(this.SourceFiles[i].GetMetadata("SkipUnchangedFiles"), out skipUnchangedFiles); if (!Directory.Exists(Path.GetDirectoryName(destPath))) { Directory.CreateDirectory(Path.GetDirectoryName(destPath)); @@ -69,7 +70,7 @@ namespace DotNetOpenAuth.BuildTasks { continue; } - Log.LogMessage(MessageImportance.Normal, "Copying \"{0}\" -> \"{1}\"", sourcePath, destPath); + Log.LogMessage(MessageImportance.Normal, "Copying file from \"{0}\" to \"{1}\"", sourcePath, destPath); File.Copy(sourcePath, destPath, true); } else { // We deliberably consider newer destination files to be up-to-date rather than |