Mercurial > hg > Members > sugi > javafx
view buildfx.xml @ 40:8119d2bc3735 default tip
refactor
author | YU |
---|---|
date | Mon, 09 Jun 2014 19:17:00 +0900 |
parents | a1e4a3aafdd1 |
children |
line wrap: on
line source
<?xml version="1.0" encoding="utf-8"?> <project name="JavaFx" default="compile" basedir="." xmlns:fx="javafx:com.sun.javafx.tools.ant"> <!-- ****プロパティ**** --> <property environment="env" /> <property name="javafx.tools.ant.jar" value="${java.home}\..\lib\ant-javafx.jar" /> <!-- ソースファイルがあるディレクトリ --> <property name="src" location="src/example"/> <!-- クラスファイルを出力するディレクトリ --> <property name="dest" location="classes/example"/> <!-- 実行可能 Jar ファイルが作成されるフォルダ --> <property name="jardest" location="."/> <!-- javadocを出力するディレクトリ --> <property name="javadoc" value="docs"/> <!-- アプリケーションの設定 --> <property name="app.vendor" value="example.CubeSample" /> <!-- 実行可能 Jar ファイルの名前(の一部) --> <property name="app.id" value="CubeSample"/> <property name="app.name" value="CubeSample"/> <property name="app.version" value="1.0" /> <!-- メインクラス --> <property name="app.main-class" value="example.CubeSample" /> <!-- タスク定義 --> <taskdef resource="com/sun/javafx/tools/ant/antlib.xml" uri="javafx:com.sun.javafx.tools.ant" classpath="${javafx.tools.ant.jar}"/> <fx:application id="app-info" name="${app.name}" mainClass="${app.main-class}" /> <fx:jar destfile="${jardest}/${app.id}-${app.version}.jar"> <fx:application refid="app-info"/> <manifest> <attribute name="Implementation-Vendor" value="${app.vendor}"/> <attribute name="Implementation-Title" value="${app.name}"/> <attribute name="Implementation-Version" value="${app.version}"/> </manifest> <fileset dir="${dest}"/> </fx:jar> <target name="clean"> <delete dir="${dest}"/> <delete dir="${javadoc}"/> <delete file="${jar}"/> </target> <target name="compile" depends="clean"> <mkdir dir="${dest}" /> <javac encoding="UTF-8" srcdir="${src}" destdir="${dest}" classpath="${java.home}\lib\jfxrt.jar" includeantruntime="false"/> </target> </project>