THRIFT-110. java: A more compact format
This patch includes the Java implementation of the new Compact Protocol outlined in the issue and a matching test. It also creates Fixtures.java, a helper class that contains some useful test structure instances.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@742847 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/java/build.xml b/lib/java/build.xml
index c686c7d..7567be4 100644
--- a/lib/java/build.xml
+++ b/lib/java/build.xml
@@ -10,13 +10,12 @@
<property name="install.path" value="/usr/local/lib" />
<property name="src.test" location="test" />
<property name="build.test" location="${build}/test" />
-
<property name="test.thrift.home" location="../../test"/>
<property file="${user.home}/.thrift-build.properties" />
-
+
<property name="cpath" location="libthrift.jar:${thrift.extra.cpath}" />
-
+
<target name="init">
<tstamp />
<mkdir dir="${build}"/>
@@ -24,7 +23,7 @@
</target>
<target name="compile" depends="init">
- <javac srcdir="${src}" destdir="${build}" source="1.5" />
+ <javac srcdir="${src}" destdir="${build}" source="1.5" debug="true"/>
</target>
<target name="dist" depends="compile">
@@ -53,6 +52,8 @@
<target name="test" description="Run the full test suite" depends="compile-test">
<java classname="org.apache.thrift.test.JSONProtoTest"
classpath="${cpath}:${build.test}" failonerror="true" />
+ <java classname="org.apache.thrift.test.TCompactProtocolTest"
+ classpath="${cpath}:${build.test}" failonerror="true" />
<java classname="org.apache.thrift.test.IdentityTest"
classpath="${cpath}:${build.test}" failonerror="true" />
<java classname="org.apache.thrift.test.EqualityTest"
@@ -82,5 +83,4 @@
</exec>
</target>
-
</project>