Repository: hive
Updated Branches:
  refs/heads/branch-1.2 5078559cd -> 8d2dfe19f


HIVE-10664 : Unit tests run fail in windows because of illegal escape character 
in file path (Hari Subramaniyan, reviewed by Thejas Nair, Sushanth Sowmyan)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/1deece37
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/1deece37
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/1deece37

Branch: refs/heads/branch-1.2
Commit: 1deece3792c4395c526c9d5820f5382005b4fa79
Parents: 5078559
Author: Sushanth Sowmyan <[email protected]>
Authored: Wed May 20 15:20:59 2015 -0700
Committer: Sushanth Sowmyan <[email protected]>
Committed: Wed May 20 15:29:08 2015 -0700

----------------------------------------------------------------------
 ant/src/org/apache/hadoop/hive/ant/QTestGenTask.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/1deece37/ant/src/org/apache/hadoop/hive/ant/QTestGenTask.java
----------------------------------------------------------------------
diff --git a/ant/src/org/apache/hadoop/hive/ant/QTestGenTask.java 
b/ant/src/org/apache/hadoop/hive/ant/QTestGenTask.java
index 60c7764..b3315c7 100644
--- a/ant/src/org/apache/hadoop/hive/ant/QTestGenTask.java
+++ b/ant/src/org/apache/hadoop/hive/ant/QTestGenTask.java
@@ -455,7 +455,7 @@ public class QTestGenTask extends Task {
       }
 
       File qFileNames = new File(outputDirectory, className + 
"QFileNames.txt");
-      String qFileNamesFile = qFileNames.getCanonicalPath();
+      String qFileNamesFile = qFileNames.toURI().getPath();
 
       if (qFileNames.exists()) {
         if (!qFileNames.delete()) {

Reply via email to