Fandom

Planet JFX

Ant task

118pages on
this wiki
Add New Page
Talk0 Share


Location, Availability Edit

Included in the compiler source & binaries is an [Ant] task that aids in compiling JavaFX Script programs.

Its fully qualified class name is: com.sun.tools.javafx.ant.JavaFxAntTask

Usage Example Edit

A usage example can be seen in the "chris" subfolder of the compiler source sandbox folder.

Importing the task into your ant file looks like this:

       <property name="javafxc.home" value="change/me"/>
       <property name="javafxc.class.path" 
                 value="${javafxc.home}/javafxc.jar:${javafxc.home}/javafxrt.jar:${javafxc.home}/Scenario.jar"/>
       <taskdef resource="javafxc-ant-task.properties" classpath="${javafxc.class.path}"/>

And actually calling the compiler looks like this:

   	<javafxc srcdir="." destdir="." includes="**/*.fx"
            	 compilerclasspath="${javafxc.class.path}"/>

The javafxc task takes the same parameters as Ant's javac task, plus the compilerclasspath parameter.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.