You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by si...@apache.org on 2006/12/14 20:26:28 UTC
svn commit: r487315 -
/lucene/java/trunk/contrib/gdata-server/src/core/build.xml
Author: simonw
Date: Thu Dec 14 11:26:27 2006
New Revision: 487315
URL: http://svn.apache.org/viewvc?view=rev&rev=487315
Log:
redefined compile-core and compile-test to exclude db4o dependend classes if db4o jar is not present
Modified:
lucene/java/trunk/contrib/gdata-server/src/core/build.xml
Modified: lucene/java/trunk/contrib/gdata-server/src/core/build.xml
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/gdata-server/src/core/build.xml?view=diff&rev=487315&r1=487314&r2=487315
==============================================================================
--- lucene/java/trunk/contrib/gdata-server/src/core/build.xml (original)
+++ lucene/java/trunk/contrib/gdata-server/src/core/build.xml Thu Dec 14 11:26:27 2006
@@ -40,6 +40,38 @@
</path>
<property name="build.dir" location="../../../../build/contrib/gdata-server/core" />
<property name="dist.dir" location="../../../../dist/contrib/gdata-server/core" />
+
+
+
+ <!-- redefine compile-core and compile-test to exclude 3rd party dependend sources -->
+ <target name="compile-core" depends="init">
+ <echo>Use gdata - compile-core task </echo>
+ <compile srcdir="src/java" destdir="${build.dir}/classes/java">
+ <classpath>
+ <path refid="classpath"/>
+ <path refid="build.path"/>
+ </classpath>
+ <exclude name="org/apache/lucene/gdata/storage/db4o/**" unless="db4o.jar.present" />
+ </compile>
+ </target>
+
+ <target name="compile-test" depends="compile-core">
+ <echo>Use gdata - compile-test task </echo>
+ <compile srcdir="src/test" destdir="${build.dir}/classes/test">
+ <classpath>
+ <path refid="test.build.path"/>
+ <path refid="test.classpath"/>
+ </classpath>
+ <exclude name="org/apache/lucene/gdata/storage/db4o/**" unless="db4o.jar.present" />
+ </compile>
+ <copy todir="${build.dir}/classes/test">
+ <fileset dir="src/test" excludes="**/*.java" />
+ </copy>
+ </target>
+
+
+
+
<pathconvert property="project.classpath" targetos="unix" refid="additional.dependencies" />
<import file="../../../contrib-build.xml" />