Improved support for cross-platform builds

This commit is contained in:
Reinhard Pointner 2018-06-23 18:35:45 +07:00
parent fb507cd795
commit be29941b53
1 changed files with 6 additions and 2 deletions

View File

@ -111,7 +111,9 @@
<macrodef name="get-macos-jre">
<attribute name="dest" />
<sequential>
<exec executable="get-java.sh" dir="${dir.cache}" failonerror="yes" />
<exec executable="get-java.sh" dir="${dir.cache}" failonerror="yes">
<arg line="get jre x86_64 Darwin" />
</exec>
<untar src="${dir.cache}/jre-${jre.version}_osx-x64_bin.tar.gz" dest="@{dest}" compression="gzip">
<patternset refid="pattern.jre" />
<cutdirsmapper dirs="1" />
@ -123,7 +125,9 @@
<macrodef name="get-linux-jre">
<attribute name="dest" />
<sequential>
<exec executable="get-java.sh" dir="${dir.cache}" failonerror="yes" />
<exec executable="get-java.sh" dir="${dir.cache}" failonerror="yes">
<arg line="get jre x86_64 Linux" />
</exec>
<untar src="${dir.cache}/jre-${jre.version}_linux-x64_bin.tar.gz" dest="@{dest}" compression="gzip">
<patternset refid="pattern.jre" />
<cutdirsmapper dirs="1" />