changeset 181:52dcead81b90 working

minor change
author e095732
date Fri, 08 Feb 2013 19:03:52 +0900
parents 481dab56c3dc
children 52a1fa5ba38b
files build.xml scripts/aquarium.sh
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/build.xml	Thu Feb 07 20:07:39 2013 +0900
+++ b/build.xml	Fri Feb 08 19:03:52 2013 +0900
@@ -34,7 +34,7 @@
   <!-- コンパイル -->
   <target name="compile">
     <mkdir dir="${classes}" />
-  	<javac encoding="UTF-8" srcdir="src" destdir="${classes}" fork="yes" includeantruntime="false">
+    <javac encoding="UTF-8" srcdir="src" destdir="${classes}" fork="yes" source="1.6" target="1.6" includeantruntime="false">
       <compilerarg value="-J-Dfile.encoding=UTF8"/>
       <classpath>
 	<pathelement path="lib/junit.jar" />
--- a/scripts/aquarium.sh	Thu Feb 07 20:07:39 2013 +0900
+++ b/scripts/aquarium.sh	Fri Feb 08 19:03:52 2013 +0900
@@ -1,7 +1,16 @@
 #!/bin/bash
+if [ $# -ne 2 ]; then 
+    echo "Usage: ./aquarium.sh NODENUM CHILDLENNUM"
+    exit 1
+fi
 max=$1
 child_num=$2
 java=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java
+if [ ! -e $java ]; then
+    echo "$java not found."
+    exit 1
+fi
+
 ruby ./topology/treen.rb $1 $2 > ./topology/tree.dot
 dot -Tpng ./topology/tree.dot > ./topology/tree.png
 #open ./topology/tree.png