Skip to content

Commit 3b79fdb

Browse files
committed
Build: fix #346 unable to run jlink on linux
git-svn-id: https://svn.code.sf.net/p/davmail/code/trunk@3562 3d1905a2-6b24-0410-a738-b14d5a86fcbd
1 parent 811b0c5 commit 3b79fdb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build.xml

+3-2
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@
405405
<exclude name="lib/hamcrest-core-*.jar"/>
406406
</fileset>
407407
</zip>
408+
<antcall target="download-jre"/>
408409
<antcall target="download-build-jre"/>
409410
<zip file="dist/davmail-${release-name}-windows-standalone.zip">
410411
<fileset dir="dist">
@@ -540,7 +541,7 @@
540541
<sonar/>
541542
</target>
542543

543-
<target name="download-jre">
544+
<target name="download-jre" unless="is.windows">
544545
<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"
545546
dest="dist/jrefx.zip"
546547
/>
@@ -550,7 +551,7 @@
550551
<delete file="dist/jrefx.zip"/>
551552
</target>
552553

553-
<target name="download-build-jre">
554+
<target name="download-build-jre" if="is.windows">
554555
<mkdir dir="dist"/>
555556
<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"
556557
dest="dist/jdkfx.zip"

0 commit comments

Comments
 (0)