You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hugegraph.apache.org by ji...@apache.org on 2022/12/06 06:21:03 UTC
[incubator-hugegraph-toolchain] branch master updated: chore: use param in antrun to support build in windows (#390)
This is an automated email from the ASF dual-hosted git repository.
jin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph-toolchain.git
The following commit(s) were added to refs/heads/master by this push:
new 942e52c0 chore: use param in antrun to support build in windows (#390)
942e52c0 is described below
commit 942e52c0be838338d5560e3993329de5122ea09b
Author: 青年 <10...@qq.com>
AuthorDate: Tue Dec 6 14:20:57 2022 +0800
chore: use param in antrun to support build in windows (#390)
---
hugegraph-dist/pom.xml | 1 +
hugegraph-hubble/hubble-dist/pom.xml | 1 +
hugegraph-loader/pom.xml | 19 ++++++-------------
hugegraph-tools/pom.xml | 19 ++++++-------------
4 files changed, 14 insertions(+), 26 deletions(-)
diff --git a/hugegraph-dist/pom.xml b/hugegraph-dist/pom.xml
index e687db87..7680c6b4 100644
--- a/hugegraph-dist/pom.xml
+++ b/hugegraph-dist/pom.xml
@@ -29,6 +29,7 @@
</goals>
<configuration>
<tasks>
+ <!-- TODO: change to assembly plugin in future -->
<echo file="${project.basedir}/dist.sh">
root_path=$(cd $(dirname $0)/..; pwd)
cd $root_path
diff --git a/hugegraph-hubble/hubble-dist/pom.xml b/hugegraph-hubble/hubble-dist/pom.xml
index 4c9e6f4b..7ac76f5d 100644
--- a/hugegraph-hubble/hubble-dist/pom.xml
+++ b/hugegraph-hubble/hubble-dist/pom.xml
@@ -77,6 +77,7 @@
</goals>
<configuration>
<tasks>
+ <!-- TODO: change to assembly plugin in future -->
<echo file="${top.level.dir}/dist.sh">
cd ${hubble-fe.dir} || exit 1
export CI=false
diff --git a/hugegraph-loader/pom.xml b/hugegraph-loader/pom.xml
index b2eb5b1a..a9f225b0 100644
--- a/hugegraph-loader/pom.xml
+++ b/hugegraph-loader/pom.xml
@@ -648,19 +648,12 @@
<goal>run</goal>
</goals>
<configuration>
- <tasks>
- <echo file="${project.basedir}/dist.sh">
- tar -zcvf \
- ${project.basedir}/${final.name}.tar.gz ${final.name} || exit 1
- rm -f ${project.basedir}/dist.sh
- echo -n "hugegraph-loader tar.gz available at: "
- echo "${project.basedir}/${final.name}.tar.gz"
- </echo>
- <exec executable="${shell-executable}"
- dir="${project.basedir}" failonerror="true">
- <arg line="./dist.sh"/>
- </exec>
- </tasks>
+ <target>
+ <tar destfile="${project.basedir}/${final.name}.tar.gz"
+ basedir="${project.basedir}"
+ includes="${final.name}/**"
+ compression="gzip"/>
+ </target>
</configuration>
</execution>
</executions>
diff --git a/hugegraph-tools/pom.xml b/hugegraph-tools/pom.xml
index 9db7966b..b9c6ff4a 100644
--- a/hugegraph-tools/pom.xml
+++ b/hugegraph-tools/pom.xml
@@ -233,19 +233,12 @@
<goal>run</goal>
</goals>
<configuration>
- <tasks>
- <echo file="${project.basedir}/dist.sh">
- tar -zcvf \
- ${project.basedir}/${final.name}.tar.gz ${final.name} || exit 1
- rm -f ${project.basedir}/dist.sh
- echo -n "hugegraph-tools tar.gz available at: "
- echo "${project.basedir}/${final.name}.tar.gz"
- </echo>
- <exec executable="${shell-executable}"
- dir="${project.basedir}" failonerror="true">
- <arg line="./dist.sh"/>
- </exec>
- </tasks>
+ <target>
+ <tar destfile="${project.basedir}/${final.name}.tar.gz"
+ basedir="${project.basedir}"
+ includes="${final.name}/**"
+ compression="gzip"/>
+ </target>
</configuration>
</execution>
</executions>