瀏覽代碼

YARN-213. YARN 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@1408992 13f79535-47bb-0310-9956-ffa450edef68
Suresh Srinivas 12 年之前
父節點
當前提交
23c97d6a0e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      hadoop-yarn-project/pom.xml

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

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