Wikia

Planet JFX

Ant task

118pages on
this wiki
Talk0


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.

Around Wikia's network

Random Wiki