jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raible, Matt" <Matt_Rai...@cable.comcast.com>
Subject Turning off logging
Date Wed, 19 Feb 2003 21:58:56 GMT
I'm trying to turn off cactus' logging by adding the following two lines to
my log4j.properties file:

log4j.category.org.apache.cactus=WARN
log4j.additivity.org.apache.cactus=false

My "test-cactus" task is as follows:

    <target name="test-cactus" depends="deploy" if="tomcat.home"
        description="Runs Cactus tests in Tomcat, starts/stops server">
        <echo>running tests at
http://${tomcat.server}:${tomcat.port}/${webapp.name}</echo>
        <runservertests
            testURL="http://${tomcat.server}:${tomcat.port}/${webapp.name}"
            startTarget="start.tomcat"
            stopTarget="stop.tomcat"
            testTarget="test-web">
        </runservertests>
    </target>

This calls the "test-web" target and uses a specific testcase if specified.
This target sets the classpath to log4.properties, log_client.properties and
log_server.properties - but editing them doesn't seem to have any effect.

    <target name="test-web" depends="package-web"
            description="Test web module">
        <antcall target="test-module" inheritAll="true">
            <param name="module" value="web"/>
            <!-- add classpath for log_client.properties for cactus-->
            <param name="additional.src.dirs"
            	value="${webapp.target}/WEB-INF/classes"/>
            <reference refid="web.test.classpath"
                torefid="test.classpath"
                />
        </antcall>
    </target>
    

Ideas are appreciated.

Matt


Mime
View raw message