浏览代码

MAPREDUCE-4790. MapReduce build script would be more readable using abspath. Contributed by Chris Nauroth.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-trunk-win@1408989 13f79535-47bb-0310-9956-ffa450edef68
Suresh Srinivas 12 年之前
父节点
当前提交
65a417178e
共有 2 个文件被更改,包括 5 次插入2 次删除
  1. 3 0
      hadoop-mapreduce-project/CHANGES.branch-trunk-win.txt
  2. 2 2
      hadoop-mapreduce-project/pom.xml

+ 3 - 0
hadoop-mapreduce-project/CHANGES.branch-trunk-win.txt

@@ -5,3 +5,6 @@ branch-trunk-win changes - unreleased
 
   MAPREDUCE-4780. MapReduce distribution build fails on Windows.
   (Chris Nauroth via suresh)
+
+  MAPREDUCE-4790. MapReduce build script would be more readable using abspath.
+  (Chris Nauroth via suresh)

+ 2 - 2
hadoop-mapreduce-project/pom.xml

@@ -182,11 +182,11 @@
                 <!-- This script preserves permissions and symlinks. -->
                 <!-- Python requires resetting indentation to far left. -->
                 <echo file="${project.build.directory}/dist-maketar.py">
-from os.path import join, normpath
+from os.path import abspath, join
 import tarfile
 
 base_name = "${project.artifactId}" + "-" + "${project.version}"
-dir_name = normpath(join(r"${project.build.directory}", base_name))
+dir_name = abspath(join(r"${project.build.directory}", base_name))
 tar_name = dir_name + ".tar.gz"
 
 with tarfile.open(tar_name, "w:gz") as tar: