You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by dr...@apache.org on 2009/12/09 20:30:02 UTC
svn commit: r888931 - in /incubator/thrift/trunk/lib/java: build.xml
test/TestClient test/TestNonblockingServer test/TestServer
Author: dreiss
Date: Wed Dec 9 19:30:01 2009
New Revision: 888931
URL: http://svn.apache.org/viewvc?rev=888931&view=rev
Log:
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.
Removed:
incubator/thrift/trunk/lib/java/test/TestClient
incubator/thrift/trunk/lib/java/test/TestNonblockingServer
incubator/thrift/trunk/lib/java/test/TestServer
Modified:
incubator/thrift/trunk/lib/java/build.xml
Modified: incubator/thrift/trunk/lib/java/build.xml
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/java/build.xml?rev=888931&r1=888930&r2=888931&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/java/build.xml (original)
+++ incubator/thrift/trunk/lib/java/build.xml Wed Dec 9 19:30:01 2009
@@ -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" />