Author: roger
Date: Wed Oct 27 19:19:04 2010
New Revision: 1028075
URL: http://svn.apache.org/viewvc?rev=1028075&view=rev
Log:
THRIFT-971 java module can't be compiled without ivy and network connection
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=1028075&r1=1028074&r2=1028075&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/java/build.xml (original)
+++ incubator/thrift/trunk/lib/java/build.xml Wed Oct 27 19:19:04 2010
@@ -122,7 +122,18 @@
<ivy:cachepath pathid="ivy.test.classpath" conf="test" />
</target>
- <target name="compile" depends="init,resolve">
+ <target name="resolve-offline" depends="ivy-init-antlib"
description="retrieve dependencies with ivy" if="noivy">
+ <path id="ivy.compile.classpath">
+ <fileset dir="${ivy.lib.dir}">
+ <include name="**/*.jar" />
+ </fileset>
+ </path>
+ <path id="ivy.test.classpath">
+ <!-- same as ivy.compile.classpath, but has to be defined -->
+ </path>
+ </target>
+
+ <target name="compile" depends="init,resolve,resolve-offline">
<javac srcdir="${src}" destdir="${build}" source="1.5" target="1.5"
debug="true" classpathref="compile.classpath" />
</target>