Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial JDK11 support #407

merged 12 commits into from Feb 2, 2019

Move JavaFX properties to, handle versioning and c…

  • Loading branch information...
tresf committed Feb 1, 2019
commit b1192f585087c7d5b583e8e33bebff854ceabbb8
@@ -33,6 +33,8 @@ jar.index=true

@@ -154,18 +154,8 @@
<echo>Size: ${build.size} KB</echo>

<!-- Download JavaFX if not already downloaded -->
<!-- Download JavaFX if needed -->
<target name="check-javafx">
<first id="found">
<fileset dir="lib/" includes="**/*fx*" />
<condition property="javafx.needed" value="${toString:found}">
<equals arg1="${toString:found}" arg2=""/>

<target name="download-javafx" depends="check-javafx" if="javafx.needed">
<property name="javafx.version" value="11.0.2" />
<loadresource property="javafx.version-url">
<propertyresource name="javafx.version"/>
@@ -176,6 +166,32 @@

<first id="found">
<dirset dir="lib/">
<include name="javafx*${javafx.version}"/>
<include name="javafx*${javafx.version-url}"/>
<condition property="javafx.needed" value="${toString:found}">
<equals arg1="${toString:found}" arg2=""/>
<property name="javafx.found" value="${toString:found}"/>

<target name="skip-javafx" depends="check-javafx" unless="javafx.needed">
<echo>JavaFX ${javafx.version} found at ${javafx.found}. Skipping.</echo>

<target name="download-javafx" depends="check-javafx,skip-javafx" if="javafx.needed">
<echo>JavaFX ${javafx.version} was not found, downloading...</echo>

<echo>Removing any old versions</echo>
<delete failonerror="false" includeemptydirs="true" verbose="true">
<fileset dir="lib/">
<include name="**/*javafx*sdk*/**"/>

<condition property="javafx.platform" value="windows">
<os family="windows"/>
@@ -185,7 +201,7 @@
<condition property="javafx.platform" value="linux">
<os family="unix"/>
<get src="${javafx.version-url}-sdk-${javafx.platform}/" dest=""/>
<get src="${javafx.mirror}/javafx-${javafx.version-url}-sdk-${javafx.platform}/" verbose="true" dest=""/>

<unzip src="" dest="lib/" overwrite="true"/>
<delete file="" />
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.