When running the tests use log configuration specified by conf/logging.properties
authorkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 29 Jan 2011 18:08:37 +0000 (18:08 +0000)
committerkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 29 Jan 2011 18:08:37 +0000 (18:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1065087 13f79535-47bb-0310-9956-ffa450edef68

test/org/apache/catalina/startup/TomcatBaseTest.java

index 3ff74ef..b48fcd0 100644 (file)
@@ -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()) {