changeset 19:a1e4a3aafdd1

minor change
author e095732
date Mon, 04 Feb 2013 20:04:58 +0900
parents 4e5507afb41f
children 43ae0c87885b
files buildfx.xml scripts/topology/tree.dot scripts/topology/tree.png src/alice/test/topology/aquarium/fx/CheckMyName.java src/alice/test/topology/aquarium/fx/TopNode.java
diffstat 5 files changed, 59 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/buildfx.xml	Mon Feb 04 20:04:58 2013 +0900
@@ -0,0 +1,54 @@
+<?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>
--- a/scripts/topology/tree.dot	Mon Feb 04 01:23:24 2013 +0900
+++ b/scripts/topology/tree.dot	Mon Feb 04 20:04:58 2013 +0900
@@ -1,6 +1,8 @@
 digraph test {
-	node0 -> cli1 [label="child0"]
+	node0 -> node1 [label="child0"]
 	node0 -> cli2 [label="child1"]
-	cli1 -> node0 [label="parent"]
+	node1 -> node0 [label="parent"]
+	node1 -> cli3 [label="child0"]
 	cli2 -> node0 [label="parent"]
+	cli3 -> node1 [label="parent"]
 }
Binary file scripts/topology/tree.png has changed
--- a/src/alice/test/topology/aquarium/fx/CheckMyName.java	Mon Feb 04 01:23:24 2013 +0900
+++ b/src/alice/test/topology/aquarium/fx/CheckMyName.java	Mon Feb 04 20:04:58 2013 +0900
@@ -29,7 +29,7 @@
 		ods.put("local", "objCnt", 5);
 		
 		if (num==0) {
-			new TopNode().execute();
+			new TopNode();
 		} else {
 			new OtherNode();
 		}
--- a/src/alice/test/topology/aquarium/fx/TopNode.java	Mon Feb 04 01:23:24 2013 +0900
+++ b/src/alice/test/topology/aquarium/fx/TopNode.java	Mon Feb 04 20:04:58 2013 +0900
@@ -17,12 +17,8 @@
 	@Override
 	public void run() {
 		ods.put("local", "list", new RoutingTable());
-		ods.put("local", "MAXSIZE", 800);
-		
 		new RegistRoutingTable();
 		
-		
-		
 		int startX = data1.asInteger() * data2.asInteger(); 
 		ods.put("local", "startX", startX);
 		ods.put("local", "CHILDNUM", 0);