Skip to content

Commit

Permalink
Build: fix #346 unable to run jlink on linux
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.code.sf.net/p/davmail/code/trunk@3562 3d1905a2-6b24-0410-a738-b14d5a86fcbd
  • Loading branch information
mguessan committed Apr 23, 2024
1 parent 811b0c5 commit 3b79fdb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@
<exclude name="lib/hamcrest-core-*.jar"/>
</fileset>
</zip>
<antcall target="download-jre"/>
<antcall target="download-build-jre"/>
<zip file="dist/davmail-${release-name}-windows-standalone.zip">
<fileset dir="dist">
Expand Down Expand Up @@ -540,7 +541,7 @@
<sonar/>
</target>

<target name="download-jre">
<target name="download-jre" unless="is.windows">
<get src="https://api.azul.com/zulu/download/community/v1.0/bundles/latest/binary/?jdk_version=15&amp;ext=zip&amp;os=windows&amp;arch=x86&amp;hw_bitness=64&amp;bundle_type=jre&amp;features=fx"
dest="dist/jrefx.zip"
/>
Expand All @@ -550,7 +551,7 @@
<delete file="dist/jrefx.zip"/>
</target>

<target name="download-build-jre">
<target name="download-build-jre" if="is.windows">
<mkdir dir="dist"/>
<get src="https://api.azul.com/zulu/download/community/v1.0/bundles/latest/binary/?jdk_version=15&amp;ext=zip&amp;os=windows&amp;arch=x86&amp;hw_bitness=64&amp;bundle_type=jdk&amp;features=fx"
dest="dist/jdkfx.zip"
Expand Down

0 comments on commit 3b79fdb

Please sign in to comment.