From 74f25dd6384b2a1f3154229c53cce16203a4bc72 Mon Sep 17 00:00:00 2001 From: Martin Ritchie Date: Mon, 20 Nov 2006 15:07:02 +0000 Subject: broker/pom.xml - removed test scope from junit to remove warning in build log. TransportConnection.java/AMQQueue.java - change log level on a print statement from warn to info log4j.properties - updated threashold to be 'all' so we can set the logging level with amqj.logging.level client/pom.xml - fixed mvn test run output. It wasn't using our log4.properties file. systests/pom.xml - added log4j.properties configuration broker/pom.xml - added log4j.properties configuration common/pom.xml - skipped tests as there are none, and it caused the build to fail Also adjusted spaceing to be 4 space per tab (and no tabs) git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@477214 13f79535-47bb-0310-9956-ffa450edef68 --- java/systests/pom.xml | 149 ++++++++++++++------------- java/systests/src/test/java/log4j.properties | 28 +++++ 2 files changed, 108 insertions(+), 69 deletions(-) create mode 100644 java/systests/src/test/java/log4j.properties (limited to 'java/systests') diff --git a/java/systests/pom.xml b/java/systests/pom.xml index 3df69ce4ac..ae6558340f 100644 --- a/java/systests/pom.xml +++ b/java/systests/pom.xml @@ -18,78 +18,89 @@ --> - 4.0.0 - org.apache.qpid - qpid-systests - jar - 1.0-incubating-M2-SNAPSHOT - Qpid System Tests - http://cwiki.apache.org/confluence/display/qpid - - + 4.0.0 org.apache.qpid - qpid + qpid-systests + jar 1.0-incubating-M2-SNAPSHOT - + Qpid System Tests + http://cwiki.apache.org/confluence/display/qpid + + + org.apache.qpid + qpid + 1.0-incubating-M2-SNAPSHOT + - - .. - + + .. + warn + - - - org.apache.qpid - qpid-common - - - org.apache.qpid - qpid-client - - - org.apache.qpid - qpid-broker - - - org.slf4j - slf4j-simple - test - - - junit - junit - test - - - ant - ant-junit - test - - + + + org.apache.qpid + qpid-common + + + org.apache.qpid + qpid-client + + + org.apache.qpid + qpid-broker + + + org.slf4j + slf4j-simple + + + junit + junit + + + ant + ant-junit + test + + - - - - org.apache.maven.plugins - maven-surefire-plugin - - - - amqj.noAutoCreateVMBroker - true - - - - **/server/**/*Test.java - **/test/unit/ack/DisconnectAndRedeliver.java - - - **/Abstract*Test* - **/*PerfTest* - **/*PerformanceTest* - **/server/util/ConcurrentTest.java - - - - - + + + + org.apache.maven.plugins + maven-surefire-plugin + + + + amqj.noAutoCreateVMBroker + true + + + amqj.logging.level + ${amqj.logging.level} + + + log4j.debug + true + + + log4j.configuration + file:///${basedir}/src/test/java/log4j.properties + + + + **/server/**/*Test.java + **/test/unit/ack/DisconnectAndRedeliver.java + + + **/Abstract*Test* + **/*PerfTest* + **/*PerformanceTest* + **/server/util/ConcurrentTest.java + + + + + diff --git a/java/systests/src/test/java/log4j.properties b/java/systests/src/test/java/log4j.properties new file mode 100644 index 0000000000..6d596d1d19 --- /dev/null +++ b/java/systests/src/test/java/log4j.properties @@ -0,0 +1,28 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +log4j.rootLogger=${root.logging.level} + + +log4j.logger.org.apache.qpid=${amqj.logging.level}, console +log4j.additivity.org.apache.qpid=false + +log4j.appender.console=org.apache.log4j.ConsoleAppender +log4j.appender.console.Threshold=all +log4j.appender.console.layout=org.apache.log4j.PatternLayout +log4j.appender.console.layout.ConversionPattern=%t %d %p [%c{4}] %m%n -- cgit v1.2.1