cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r762913 - in /incubator/cassandra/trunk: build.xml test/conf/log4j.properties
Date Wed, 08 Apr 2009 04:11:55 GMT
Author: jbellis
Date: Tue Apr  7 19:17:54 2009
New Revision: 762913

URL: http://svn.apache.org/viewvc?rev=762913&view=rev
Log:
add log4j.properties for testing; output is to build/test/logs/system.log.  patch by jbellis;
reviewed by Jun Rao for #64

Added:
    incubator/cassandra/trunk/test/conf/log4j.properties
Modified:
    incubator/cassandra/trunk/build.xml

Modified: incubator/cassandra/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/build.xml?rev=762913&r1=762912&r2=762913&view=diff
==============================================================================
--- incubator/cassandra/trunk/build.xml (original)
+++ incubator/cassandra/trunk/build.xml Tue Apr  7 19:17:54 2009
@@ -12,6 +12,7 @@
     <property name="javadoc.dir" value="${build.dir}/javadoc"/>
     <property name="test.dir" value="${basedir}/test"/>
     <property name="test.classes" value="${build.dir}/test/classes"/>
+    <property name="test.conf" value="${test.dir}/conf"/>
     <property name="final.name" value="cassandra"/>
 
     <!-- http://cobertura.sourceforge.net/ -->
@@ -148,12 +149,13 @@
             haltOnFailure="true"
             verbose="2">
       <sysproperty key="net.sourceforge.cobertura.datafile" file="${cobertura.datafile}"/>
-      <jvmarg value="-Dstorage-config=test/conf"/>
+      <jvmarg value="-Dstorage-config=${test.conf}"/>
       <classpath>
         <pathelement location="${cobertura.classes.dir}"/>
         <path refid="cassandra.classpath" />
         <pathelement location="${test.classes}"/>
         <pathelement location="${cobertura.dir}/cobertura.jar"/>
+        <pathelement location="${test.conf}"/>
       </classpath>
       <classfileset dir="${test.classes}" includes="**/*.class" />
     </testng>

Added: incubator/cassandra/trunk/test/conf/log4j.properties
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/test/conf/log4j.properties?rev=762913&view=auto
==============================================================================
--- incubator/cassandra/trunk/test/conf/log4j.properties (added)
+++ incubator/cassandra/trunk/test/conf/log4j.properties Tue Apr  7 19:17:54 2009
@@ -0,0 +1,8 @@
+log4j.rootLogger=DEBUG,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=build/test/logs/system.log



Mime
View raw message