From 31f0194b8ce056898f76e486ebdb64b998390b19 Mon Sep 17 00:00:00 2001 From: David Greco Date: Thu, 23 Sep 2010 19:37:18 +0200 Subject: [PATCH] Now the hbase tests don't spit out too much logs, made the running of the hbase tests optional --- .../src/main/resources/log4j.properties | 25 +++++++++++++++++++ config/logback-test.xml | 4 +++ project/build/AkkaProject.scala | 10 +++++++- 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 akka-persistence/akka-persistence-hbase/src/main/resources/log4j.properties diff --git a/akka-persistence/akka-persistence-hbase/src/main/resources/log4j.properties b/akka-persistence/akka-persistence-hbase/src/main/resources/log4j.properties new file mode 100644 index 0000000000..5763ff8232 --- /dev/null +++ b/akka-persistence/akka-persistence-hbase/src/main/resources/log4j.properties @@ -0,0 +1,25 @@ +# 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=ERROR,R + +# rolling log file ("system.log +log4j.appender.R=org.apache.log4j.DailyRollingFileAppender +log4j.appender.R.DatePattern='.'yyyy-MM-dd-HH +log4j.appender.R.layout=org.apache.log4j.PatternLayout +log4j.appender.R.layout.ConversionPattern=%5p [%t] %d{ISO8601} %F (line %L) %m%n +log4j.appender.R.File=target/logs/system.log diff --git a/config/logback-test.xml b/config/logback-test.xml index fdb912d463..0671694e3f 100644 --- a/config/logback-test.xml +++ b/config/logback-test.xml @@ -16,6 +16,10 @@ + + + + diff --git a/project/build/AkkaProject.scala b/project/build/AkkaProject.scala index 82ed509151..eecb4c4bfb 100644 --- a/project/build/AkkaProject.scala +++ b/project/build/AkkaProject.scala @@ -563,6 +563,8 @@ class AkkaParentProject(info: ProjectInfo) extends DefaultProject(info) { + + @@ -571,7 +573,13 @@ class AkkaParentProject(info: ProjectInfo) extends DefaultProject(info) { - override def testOptions = TestFilter((name: String) => name.endsWith("Test")) :: Nil + val hbase_test = System.getenv("HBASE_TEST") + override def testOptions = { val o = TestFilter((name: String) => name.endsWith("Test")) :: Nil + if(hbase_test != "true") + o + else + Nil + } } // akka-persistence-voldemort subproject