You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by rd...@apache.org on 2006/04/09 13:27:22 UTC
svn commit: r392703 - /jakarta/commons/proper/logging/trunk/build.xml
Author: rdonkin
Date: Sun Apr 9 04:27:22 2006
New Revision: 392703
URL: http://svn.apache.org/viewcvs?rev=392703&view=rev
Log:
Made logkit tests optional. Moved pathable tests into optional log4j section since they rely on that implementation.
Modified:
jakarta/commons/proper/logging/trunk/build.xml
Modified: jakarta/commons/proper/logging/trunk/build.xml
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/logging/trunk/build.xml?rev=392703&r1=392702&r2=392703&view=diff
==============================================================================
--- jakarta/commons/proper/logging/trunk/build.xml (original)
+++ jakarta/commons/proper/logging/trunk/build.xml Sun Apr 9 04:27:22 2006
@@ -515,6 +515,14 @@
optimize="${compile.optimize}">
<classpath refid="test.classpath.log4j12"/>
<include name='**/log4j/**'/>
+ <!-- NOTE -->
+ <!--
+ Pathable tests do not reference the Log4J Logger directly
+ but try to load them by reflection from particular loaders.
+ They will therefore fail unless this logger is available.
+ -->
+ <include name='**/pathable/**'/>
+ <!-- END NOTE -->
</javac>
</target>
@@ -529,7 +537,18 @@
<include name='**/avalon/**'/>
</javac>
</target>
-
+
+ <target name='compile.logkit.tests' if='logkit.present'>
+ <javac srcdir="${test.home}"
+ destdir="${build.home}/tests"
+ debug="${compile.debug}"
+ deprecation="${compile.deprecation}"
+ optimize="${compile.optimize}">
+ <classpath refid="test.classpath"/>
+ <include name='**/logkit/**'/>
+ </javac>
+ </target>
+
<target name="compile.tests" depends="compile"
description="Compile unit test cases">
<javac srcdir="${test.home}"
@@ -540,11 +559,21 @@
<classpath refid="test.classpath"/>
<exclude name='**/jdk14/**'/>
<exclude name='**/log4j/**'/>
+ <!-- NOTE -->
+ <!--
+ Pathable tests do not reference the Log4J Logger directly
+ but try to load them by reflection from particular loaders.
+ They will therefore fail unless this logger is available.
+ -->
+ <exclude name='**/pathable/**'/>
+ <!-- END NOTE -->
<exclude name='**/avalon/**'/>
+ <exclude name='**/logkit/**'/>
</javac>
<antcall target='compile.log4j.tests'/>
<antcall target='compile.jdk1.4.tests'/>
<antcall target='compile.avalon.tests'/>
+ <antcall target='compile.logkit.tests'/>
<copy todir="${build.home}/tests" filtering="on">
<fileset dir="${test.home}" excludes="**/*.java"/>
</copy>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org