From: kkolinko Date: Sat, 29 Jan 2011 18:08:37 +0000 (+0000) Subject: When running the tests use log configuration specified by conf/logging.properties X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=be641d6dd931f0a21c8f5946915062d812277981;p=tomcat7.0 When running the tests use log configuration specified by conf/logging.properties git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1065087 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/test/org/apache/catalina/startup/TomcatBaseTest.java b/test/org/apache/catalina/startup/TomcatBaseTest.java index 3ff74ef47..b48fcd0e2 100644 --- a/test/org/apache/catalina/startup/TomcatBaseTest.java +++ b/test/org/apache/catalina/startup/TomcatBaseTest.java @@ -94,6 +94,8 @@ public abstract class TomcatBaseTest extends TestCase { // Need to use JULI so log messages from the tests are visible System.setProperty("java.util.logging.manager", "org.apache.juli.ClassLoaderLogManager"); + System.setProperty("java.util.logging.config.file", new File( + getBuildDirectory(), "conf/logging.properties").toString()); tempDir = new File(System.getProperty("tomcat.test.temp", "output/tmp")); if (!tempDir.exists() && !tempDir.mkdirs()) {