[tasque] [xbuild] Fix invalid files for translation found



commit 7ea0d950c5832346bae422ad91004da36b3e5d69
Author: Antonius Riha <antoniusriha gmail com>
Date:   Thu Oct 18 22:27:42 2012 +0200

    [xbuild] Fix invalid files for translation found

 build/NormalizePath.cs |    5 ++++-
 build/X.Common.targets |    6 +++---
 2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/build/NormalizePath.cs b/build/NormalizePath.cs
index e3480e8..0ec092b 100644
--- a/build/NormalizePath.cs
+++ b/build/NormalizePath.cs
@@ -58,7 +58,10 @@ namespace Tasque.Build
 
 			var basePath = Environment.CurrentDirectory;
 			var targetPath = IO.Path.GetFullPath (path);
-			return GetRelPath.InternalGetRelPath (basePath, targetPath);
+			path = GetRelPath.InternalGetRelPath (basePath, targetPath);
+			if (string.IsNullOrWhiteSpace (path))
+				path = ".";
+			return path;
 		}
 	}
 }
diff --git a/build/X.Common.targets b/build/X.Common.targets
index b202a88..33bc4a2 100644
--- a/build/X.Common.targets
+++ b/build/X.Common.targets
@@ -28,9 +28,9 @@
     </CreateProperty>
     
     <!-- SrcDir -->
-    <CreateProperty Value="$(TopSrcDir)\$(_SrcDirStrip)">
-      <Output TaskParameter="Value" PropertyName="SrcDir" />
-    </CreateProperty>
+    <NormalizePath Path="$(TopSrcDir)\$(_SrcDirStrip)">
+      <Output TaskParameter="Path" PropertyName="SrcDir" />
+    </NormalizePath>
     
     <!-- po dirs: Assume it's <top_level>/po -->
     <CreateProperty Condition=" '$(PoBuildDir)' == '' " Value="$(TopBuildDir)\po">



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]