|
327 | 327 | <property name="ant-javafx.jar.location" value="${platform.home}${file.separator}tools${file.separator}ant-javafx.jar"/>
|
328 | 328 | </target>
|
329 | 329 | <target name="-check-ant-javafx-in-probjdk-lib" unless="ant-javafx.jar.location">
|
| 330 | + <condition property="do.set.ant-javafx.in.probjdk.lib.has_jre"> |
| 331 | + <available file="${java.home}${file.separator}..${file.separator}lib${file.separator}ant-javafx.jar"/> |
| 332 | + </condition> |
| 333 | + <condition property="do.set.ant-javafx.in.probjdk.lib.no_jre"> |
| 334 | + <available file="${java.home}${file.separator}lib${file.separator}ant-javafx.jar"/> |
| 335 | + </condition> |
330 | 336 | <condition property="do.set.ant-javafx.in.probjdk.lib">
|
331 | 337 | <and>
|
332 | 338 | <not><isset property="ant-javafx.jar.location"/></not>
|
333 |
| - <available file="${java.home}${file.separator}..${file.separator}lib${file.separator}ant-javafx.jar"/> |
| 339 | + <or> |
| 340 | + <isset property="do.set.ant-javafx.in.probjdk.lib.has_jre"/> |
| 341 | + <isset property="do.set.ant-javafx.in.probjdk.lib.no_jre"/> |
| 342 | + </or> |
334 | 343 | </and>
|
335 | 344 | </condition>
|
336 | 345 | </target>
|
337 | 346 | <target name="-set-ant-javafx-in-probjdk-lib" depends="-set-ant-javafx-in-platform-home-tools,-check-ant-javafx-in-probjdk-lib" if="do.set.ant-javafx.in.probjdk.lib">
|
338 |
| - <property name="ant-javafx.jar.location" value="${java.home}${file.separator}..${file.separator}lib${file.separator}ant-javafx.jar"/> |
| 347 | + <condition property="ant-javafx.jar.location" value="${java.home}${file.separator}..${file.separator}lib${file.separator}ant-javafx.jar" else="${java.home}${file.separator}lib${file.separator}ant-javafx.jar"> |
| 348 | + <isset property="do.set.ant-javafx.in.probjdk.lib.has_jre"/> |
| 349 | + </condition> |
339 | 350 | </target>
|
340 | 351 | <target name="-check-ant-javafx-in-probjdk-tools" unless="ant-javafx.jar.location">
|
| 352 | + <condition property="do.set.ant-javafx.in.probjdk.tools.has_jre"> |
| 353 | + <available file="${java.home}${file.separator}..${file.separator}tools${file.separator}ant-javafx.jar"/> |
| 354 | + </condition> |
| 355 | + <condition property="do.set.ant-javafx.in.probjdk.tools.no_jre"> |
| 356 | + <available file="${java.home}${file.separator}tools${file.separator}ant-javafx.jar"/> |
| 357 | + </condition> |
341 | 358 | <condition property="do.set.ant-javafx.in.probjdk.tools">
|
342 | 359 | <and>
|
343 | 360 | <not><isset property="ant-javafx.jar.location"/></not>
|
344 |
| - <available file="${java.home}${file.separator}..${file.separator}tools${file.separator}ant-javafx.jar"/> |
| 361 | + <or> |
| 362 | + <isset property="do.set.ant-javafx.in.probjdk.tools.has_jre"/> |
| 363 | + <isset property="do.set.ant-javafx.in.probjdk.tools.no_jre"/> |
| 364 | + </or> |
345 | 365 | </and>
|
346 | 366 | </condition>
|
347 | 367 | </target>
|
348 | 368 | <target name="-set-ant-javafx-in-probjdk-tools" depends="-set-ant-javafx-in-probjdk-lib,-check-ant-javafx-in-probjdk-tools" if="do.set.ant-javafx.in.probjdk.tools">
|
349 |
| - <property name="ant-javafx.jar.location" value="${java.home}${file.separator}..${file.separator}tools${file.separator}ant-javafx.jar"/> |
| 369 | + <condition property="ant-javafx.jar.location" value="${java.home}${file.separator}..${file.separator}tools${file.separator}ant-javafx.jar" else="${java.home}${file.separator}tools${file.separator}ant-javafx.jar"> |
| 370 | + <isset property="do.set.ant-javafx.in.probjdk.tools.has_jre"/> |
| 371 | + </condition> |
350 | 372 | </target>
|
351 | 373 | <target name="-check-ant-javafx-in-macjdk-lib" unless="ant-javafx.jar.location">
|
352 | 374 | <condition property="do.set.ant-javafx.in.macjdk.lib">
|
|
1825 | 1847 |
|
1826 | 1848 | // manifest
|
1827 | 1849 | var man = jar.createManifest();
|
| 1850 | + var userManifestPath = project.getProperty("manifest.file"); |
| 1851 | + if (userManifestPath) { |
| 1852 | + var userManifestFile = project.resolveFile(userManifestPath); |
| 1853 | + if (userManifestFile.isFile()) { |
| 1854 | + var manifestEncoding = project.getProperty("manifest.encoding"); |
| 1855 | + var userManifestReader = manifestEncoding ? |
| 1856 | + new java.io.InputStreamReader( |
| 1857 | + new java.io.FileInputStream(userManifestFile), |
| 1858 | + manifestEncoding) : |
| 1859 | + new java.io.InputStreamReader( |
| 1860 | + new java.io.FileInputStream(userManifestFile)); |
| 1861 | + try { |
| 1862 | + var userManifest = new org.apache.tools.ant.taskdefs.Manifest(userManifestReader); |
| 1863 | + man.merge(userManifest); |
| 1864 | + } finally { |
| 1865 | + userManifestReader.close(); |
| 1866 | + } |
| 1867 | + } |
| 1868 | + } |
1828 | 1869 | var a1val = new String(project.getProperty("application.vendor"));
|
1829 | 1870 | var a1 = new org.apache.tools.ant.taskdefs.Manifest.Attribute();
|
1830 | 1871 | a1.setName("Implementation-Vendor");
|
|
3678 | 3719 | <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
|
3679 | 3720 | <jvmarg line="${debug-args-line}"/>
|
3680 | 3721 | <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
|
| 3722 | + <jvmarg value="-Dglass.disableGrab=true"/> |
3681 | 3723 | <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
|
3682 | 3724 | <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
|
3683 | 3725 | <jvmarg line="${run.jvmargs}"/>
|
|
3816 | 3858 | <target name="-debug-javaws-debuggee" depends="-init-debug-args">
|
3817 | 3859 | <echo message="Executing ${jfx.deployment.jnlp} in debug mode using ${active.webstart.executable}"/>
|
3818 | 3860 | <exec executable="${active.webstart.executable}">
|
3819 |
| - <env key="JAVAWS_VM_ARGS" value="${debug-args-line} -Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/> |
| 3861 | + <env key="JAVAWS_VM_ARGS" value="${debug-args-line} -Xrunjdwp:transport=${debug-transport},address=${jpda.address} -Dglass.disableGrab=true"/> |
3820 | 3862 | <arg value="-wait"/>
|
3821 | 3863 | <arg file="${jfx.deployment.jnlp}"/>
|
3822 | 3864 | </exec>
|
|
0 commit comments