Ensure JavaPackager task finds custom resources on the classpath.

This commit is contained in:
Chris Rankin 2017-02-08 23:09:48 +00:00
parent 8b77068eb0
commit 8946ef830e

View File

@ -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 {