changeset 8:b973de8b6785

add build.xml
author e095732
date Tue, 29 Jan 2013 09:59:18 +0900
parents 75f7a75bec83
children 4823e45e8a2c
files build.xml src/alice/test/topology/aquarium/fx/AddObject.java src/alice/test/topology/aquarium/fx/AquariumController.java src/alice/test/topology/aquarium/fx/CheckMyName.java src/alice/test/topology/aquarium/fx/UpdateData.java src/aquarium/test/local/StartCodeSegment.java
diffstat 6 files changed, 64 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/build.xml	Tue Jan 29 09:59:18 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/src/alice/test/topology/aquarium/fx/AddObject.java	Mon Jan 28 16:59:39 2013 +0900
+++ b/src/alice/test/topology/aquarium/fx/AddObject.java	Tue Jan 29 09:59:18 2013 +0900
@@ -42,6 +42,7 @@
 					new SetTranslation(iv ,iv.getId());
 					list.add(iv);
 					new PositionController(iv.getId());
+					new Share(iv.getId());
 				}
 				System.out.println("Create OBJ " + num);
 				System.out.println(list);
--- a/src/alice/test/topology/aquarium/fx/AquariumController.java	Mon Jan 28 16:59:39 2013 +0900
+++ b/src/alice/test/topology/aquarium/fx/AquariumController.java	Tue Jan 29 09:59:18 2013 +0900
@@ -13,7 +13,7 @@
 	private ImageView image;
 	
 	public AquariumController(){
-		System.out.println("run JavaFX");	
+		System.out.println("run JavaFX");
 	}
 	
 	@FXML
--- a/src/alice/test/topology/aquarium/fx/CheckMyName.java	Mon Jan 28 16:59:39 2013 +0900
+++ b/src/alice/test/topology/aquarium/fx/CheckMyName.java	Tue Jan 29 09:59:18 2013 +0900
@@ -21,18 +21,13 @@
 		Matcher matcher = pattern.matcher(name);
 		
 		matcher.find();
-		String type = matcher.group(1);
 		int num = new Integer(matcher.group(2));
-		if (type.equals("cli")){
+		
+		if (num==0) {
+			new TopNode().execute();
+		} else {
 			new OtherNode().execute();
-		} else if (type.equals("node")){
-			if (num==0) {
-				new TopNode().execute();
-			} else {
-				new OtherNode().execute();
-			}
 		}
 		
-		
 	}
 }
--- a/src/alice/test/topology/aquarium/fx/UpdateData.java	Mon Jan 28 16:59:39 2013 +0900
+++ b/src/alice/test/topology/aquarium/fx/UpdateData.java	Tue Jan 29 09:59:18 2013 +0900
@@ -14,6 +14,6 @@
 
 	@Override
 	public void run() {
-		ods.update("local", this.key, fd);
+		ods.update("local", this.key, this.fd);
 	}
 }
--- a/src/aquarium/test/local/StartCodeSegment.java	Mon Jan 28 16:59:39 2013 +0900
+++ b/src/aquarium/test/local/StartCodeSegment.java	Tue Jan 29 09:59:18 2013 +0900
@@ -8,10 +8,10 @@
 
 	@Override
 	public void run() {
-		ods.put("local", "objCnt", 4);
+		ods.put("local", "objCnt", 5);
 		Aquarium aqua = new Aquarium();
 		aqua.run();
- 	}
+	}
 
-	
+
 }