THRIFT-645. java: Create ant rules for running the test client and server
I didn't make these depend on compile-test since ant doesn't seem to
detect that the class files are up to date, so it takes a really long
time to recompile everything.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@888931 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/java/build.xml b/lib/java/build.xml
index 1694414..307fda5 100644
--- a/lib/java/build.xml
+++ b/lib/java/build.xml
@@ -186,6 +186,27 @@
classpathref="test.classpath" failonerror="true" />
</target>
+ <target name="testclient" description="Run a test client">
+ <java classname="org.apache.thrift.test.TestClient"
+ classpathref="test.classpath" failonerror="true">
+ <arg line="${testargs}" />
+ </java>
+ </target>
+
+ <target name="testserver" description="Run a test server">
+ <java classname="org.apache.thrift.test.TestServer"
+ classpathref="test.classpath" failonerror="true">
+ <arg line="${testargs}" />
+ </java>
+ </target>
+
+ <target name="testnonblockingserver" description="Run a test nonblocking server">
+ <java classname="org.apache.thrift.test.TestNonblockingServer"
+ classpathref="test.classpath" failonerror="true">
+ <arg line="${testargs}" />
+ </java>
+ </target>
+
<target name="generate">
<exec executable="../../compiler/cpp/thrift" failonerror="true">
<arg line="--gen java:hashcode ${test.thrift.home}/ThriftTest.thrift" />