From 8946ef830efd31b2c4aa62325e8bfac93f0091e4 Mon Sep 17 00:00:00 2001 From: Chris Rankin Date: Wed, 8 Feb 2017 23:09:48 +0000 Subject: [PATCH] Ensure JavaPackager task finds custom resources on the classpath. --- tools/demobench/build.gradle | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/demobench/build.gradle b/tools/demobench/build.gradle index 03fe227f76..3a557b40b5 100644 --- a/tools/demobench/build.gradle +++ b/tools/demobench/build.gradle @@ -125,11 +125,6 @@ distributions { task javapackage { doLast { - ant.taskdef( - resource: 'com/sun/javafx/tools/ant/antlib.xml', - classpath: "${pkg_source}:${java_home}/../lib/ant-javafx.jar" - ) - ant.delete(dir: "${pkg_source}") ant.delete(dir: 'build/exedir') @@ -142,6 +137,11 @@ task javapackage { } } + ant.taskdef( + resource: 'com/sun/javafx/tools/ant/antlib.xml', + classpath: "${pkg_source}:${java_home}/../lib/ant-javafx.jar" + ) + ant.deploy(nativeBundles: 'rpm', outdir: 'build/exedir', outfile: 'DemoBench', verbose: 'true') { application(name: 'DemoBench', version: "$pkg_version", mainClass: "$mainClassName") resources {