-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
8u101
-
x86_64
-
linux
-
Verified
FULL PRODUCT VERSION :
java version "1.8.0_101"
ADDITIONAL OS VERSION INFORMATION :
Linux blue 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2+deb8u2 (2016-06-25) x86_64 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
https://docs.oracle.com/javase/8/docs/technotes/guides/deploy/javafx_ant_task_reference.html#CIAIEJHG describes a JavaFX Ant task for specifying application details—namely, fx:info. However, including the JavaFX Ant tasks in a project (as specified by https://docs.oracle.com/javase/8/docs/technotes/guides/deploy/javafx_ant_tasks.html#CIAEIAGE ) does not define the fx:info task.
Apparently, this occurs because the com/sun/javafx/tools/ant/antlib.xml entry in the lib/ant-javafx.jar file that is part of the JDK does not define the "info" task.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
In an Ant build file, use <taskdef> to include the tasks defined in ant-javafx.jar. Execute a target which makes use of <fx:info>.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
I expect all Ant tasks described in the JavaFX Ant Task Reference, including fx:info, to be available to my Ant build, when I import them from lib/ant-javafx.jar.
ACTUAL -
fx:info is not defined. Ant produces an error stating that the “info” task does not exist.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
Problem: failed to create task or type javafx:com.sun.javafx.tools.ant:info
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
The definitions in the namespace javafx:com.sun.javafx.tools.ant are:
deploy
resources
fileset
signjar
preferences
jar
permissions
csstobin
platform
init-ant
application
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
<project name="Example" default="package"
xmlns:fx="javafx:com.sun.javafx.tools.ant">
<target name="-fx-tasks">
<path id="fx-tasks.classpath">
<pathelement location="${java.home}/lib/ant-javafx.jar"/>
<pathelement location="${java.home}/../lib/ant-javafx.jar"/>
</path>
<taskdef resource="com/sun/javafx/tools/ant/antlib.xml"
uri="javafx:com.sun.javafx.tools.ant"
classpathref="fx-tasks.classpath"/>
</target>
<target name="package" depends="-fx-tasks">
<fx:info id="deploy.info"
category="Applications" title="Example"
description="Example application"
vendor="Acme Inc.">
</fx:info>
</target>
</project>
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
<path id="fx-tasks.classpath">
<pathelement location="${java.home}/lib/ant-javafx.jar"/>
<pathelement location="${java.home}/../lib/ant-javafx.jar"/>
</path>
<typedef name="info" classname="com.sun.javafx.tools.ant.Info"
uri="javafx:com.sun.javafx.tools.ant"
classpathref="fx-tasks.classpath"/>
java version "1.8.0_101"
ADDITIONAL OS VERSION INFORMATION :
Linux blue 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2+deb8u2 (2016-06-25) x86_64 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
https://docs.oracle.com/javase/8/docs/technotes/guides/deploy/javafx_ant_task_reference.html#CIAIEJHG describes a JavaFX Ant task for specifying application details—namely, fx:info. However, including the JavaFX Ant tasks in a project (as specified by https://docs.oracle.com/javase/8/docs/technotes/guides/deploy/javafx_ant_tasks.html#CIAEIAGE ) does not define the fx:info task.
Apparently, this occurs because the com/sun/javafx/tools/ant/antlib.xml entry in the lib/ant-javafx.jar file that is part of the JDK does not define the "info" task.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
In an Ant build file, use <taskdef> to include the tasks defined in ant-javafx.jar. Execute a target which makes use of <fx:info>.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
I expect all Ant tasks described in the JavaFX Ant Task Reference, including fx:info, to be available to my Ant build, when I import them from lib/ant-javafx.jar.
ACTUAL -
fx:info is not defined. Ant produces an error stating that the “info” task does not exist.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
Problem: failed to create task or type javafx:com.sun.javafx.tools.ant:info
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
The definitions in the namespace javafx:com.sun.javafx.tools.ant are:
deploy
resources
fileset
signjar
preferences
jar
permissions
csstobin
platform
init-ant
application
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
<project name="Example" default="package"
xmlns:fx="javafx:com.sun.javafx.tools.ant">
<target name="-fx-tasks">
<path id="fx-tasks.classpath">
<pathelement location="${java.home}/lib/ant-javafx.jar"/>
<pathelement location="${java.home}/../lib/ant-javafx.jar"/>
</path>
<taskdef resource="com/sun/javafx/tools/ant/antlib.xml"
uri="javafx:com.sun.javafx.tools.ant"
classpathref="fx-tasks.classpath"/>
</target>
<target name="package" depends="-fx-tasks">
<fx:info id="deploy.info"
category="Applications" title="Example"
description="Example application"
vendor="Acme Inc.">
</fx:info>
</target>
</project>
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
<path id="fx-tasks.classpath">
<pathelement location="${java.home}/lib/ant-javafx.jar"/>
<pathelement location="${java.home}/../lib/ant-javafx.jar"/>
</path>
<typedef name="info" classname="com.sun.javafx.tools.ant.Info"
uri="javafx:com.sun.javafx.tools.ant"
classpathref="fx-tasks.classpath"/>