Mercurial > hg > Members > tatsuki > Alice
changeset 176:4658bf530834 working
remove ant warning
author | e095732 |
---|---|
date | Tue, 29 Jan 2013 10:30:41 +0900 |
parents | d7816b9b72e9 |
children | 4a6412b9d9aa |
files | build.xml src/alice/datasegment/Receiver.java src/alice/test/codesegment/local/TestLocalAlice.java |
diffstat | 3 files changed, 9 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/build.xml Thu Jan 24 21:23:16 2013 +0900 +++ b/build.xml Tue Jan 29 10:30:41 2013 +0900 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<project name="Alice" default="jar" basedir="."> +<project name="Alice" default="show" basedir="."> <!-- ****プロパティ**** --> <!-- ソースファイルがあるディレクトリ --> @@ -17,6 +17,10 @@ <!-- ****ターゲット**** --> <!-- jarファイルの作成 --> + <target name="show" depends="jar"> + <echo message="JRE-VERSION = ${java.specification.version}"/> + </target> + <target name="jar" depends="compile"> <jar jarfile="${jar}" basedir="${classes}"> <zipgroupfileset dir="lib" includes="*.jar" /> @@ -26,10 +30,11 @@ </jar> </target> + <!-- コンパイル --> <target name="compile"> <mkdir dir="${classes}" /> - <javac encoding="UTF-8" srcdir="src" destdir="${classes}" fork="yes"> + <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/src/alice/datasegment/Receiver.java Thu Jan 24 21:23:16 2013 +0900 +++ b/src/alice/datasegment/Receiver.java Tue Jan 29 10:30:41 2013 +0900 @@ -32,11 +32,11 @@ public void setKey(String managerKey, String key) { this.managerKey = managerKey; - this.key = key; setKey(managerKey, key, 0); } public void setKey(String managerKey, String key, int index) { + this.key = key; switch (type) { case PEEK: ids.peek(this, managerKey, key, index); @@ -51,11 +51,11 @@ } public void setKey(String key) { - this.key = key; setKey(key, 0); } public void setKey(String key, int index) { + this.key = key; switch (type) { case PEEK: ids.peek(this, key, index);
--- a/src/alice/test/codesegment/local/TestLocalAlice.java Thu Jan 24 21:23:16 2013 +0900 +++ b/src/alice/test/codesegment/local/TestLocalAlice.java Tue Jan 29 10:30:41 2013 +0900 @@ -1,7 +1,6 @@ package alice.test.codesegment.local; public class TestLocalAlice { - static long t = System.currentTimeMillis(); public static void main(String args[]) { new StartCodeSegment().execute(); }