|
@@ -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:
|