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/05/22 21:50:32 UTC

svn commit: r777677 - /incubator/thrift/trunk/lib/java/build.xml

Author: dreiss
Date: Fri May 22 19:50:32 2009
New Revision: 777677

URL: http://svn.apache.org/viewvc?rev=777677&view=rev
Log:
THRIFT-450. java: Respect the global classpath during testing

I'm not sure why, but "ant test" under lib/java doesn't pass the
global classpath to the test programs.  (This is weird because
compile-test does.)  This change manually extracts the CLASSPATH
environment variable and adds it to the test classpath.

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=777677&r1=777676&r2=777677&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/java/build.xml (original)
+++ incubator/thrift/trunk/lib/java/build.xml Fri May 22 19:50:32 2009
@@ -22,6 +22,8 @@
 
   <description>Thrift Build File</description>
 
+  <property environment="env" />
+
   <property name="gen" location="gen-java" />
   <property name="genbean" location="gen-javabean" />
 
@@ -51,6 +53,7 @@
 
   <path id="test.classpath">
     <path refid="compile.classpath" />
+    <pathelement path="${env.CLASSPATH}" />
     <pathelement location="build/test" />
     <pathelement location="libthrift.jar" />
   </path>