vmassol 2003/10/12 22:43:41
Modified: samples/servlet/src/scripts/j2ee12 build.properties
samples/servlet/src/scripts/share build.xml
samples/servlet/src/scripts/j2ee13 build.properties
Log:
Allow easy turning on/off of logging during the cactus build.
Revision Changes Path
1.12 +30 -1
jakarta-cactus/samples/servlet/src/scripts/j2ee12/build.properties
Index: build.properties
===================================================================
RCS file:
/home/cvs/jakarta-cactus/samples/servlet/src/scripts/j2ee12/build.properties,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- build.properties 10 Aug 2003 13:55:38 -0000 1.11
+++ build.properties 13 Oct 2003 05:43:41 -0000 1.12
@@ -40,3 +40,32 @@
#cactus.home.orion1x = c:/Apps/orion-1.6.0
#cactus.home.orion2x = c:/Apps/orion-2.0.2
#cactus.home.weblogic7x = c:/bea/weblogic700
+
+# -----------------------------------------------------------------------------
+# Logging properties
+# -----------------------------------------------------------------------------
+
+# Disable logging by default when running the tests. If you wish to use a
+# logging subsystem, uncomment the line below. That will let Commons logging
+# decide automatically of a suitable logging system for you. For more info, see
+#
http://jakarta.apache.org/commons/logging/api/org/apache/commons/logging/package-summary.html#package_description
+org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog
+
+# ---- JDK 1.4 logging properties
+
+# Following properties are useful if you're using the JDK 1.4 logging subsystem
+# and wish to output logs to the console. Comment the NoOpLog line above and
+# uncommment the following lines as needed.
+java.util.logging.config.file=${basedir}/build.properties
+handlers= java.util.logging.FileHandler,java.util.logging.ConsoleHandler
+java.util.logging.ConsoleHandler.level = FINEST
+java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
+java.util.logging.FileHandler.pattern = test%u.log
+java.util.logging.FileHandler.limit = 50000
+java.util.logging.FileHandler.count = 1
+java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter
+
+# If you want to provide finer grained logging, restrict the level for the
+# specific package name.
+# For example: org.apache.cactus.server.level = FINEST
+org.apache.cactus.level = FINEST
1.23 +9 -0 jakarta-cactus/samples/servlet/src/scripts/share/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-cactus/samples/servlet/src/scripts/share/build.xml,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- build.xml 30 Jun 2003 16:01:35 -0000 1.22
+++ build.xml 13 Oct 2003 05:43:41 -0000 1.23
@@ -279,9 +279,18 @@
<target name="test" depends="test.prepare"
description="Run the tests on the defined containers">
+ <!-- Save all Ant properties to a file so that it can be read by the
+ TestAll test suite. This is to allow passing system properties
+ to the tests. This is useful for example to configure logging
+ properties. For example, if you are using the JDK 1.4 and you
+ wish to pass your custom logging file, you can can:
+ ant -Djava.util.logging.config.file=logging.properties test -->
+ <echoproperties destfile="${target.dir}/test.properties"/>
+
<!-- Run the tests -->
<cactus warfile="${target.dir}/test.war" fork="yes"
failureproperty="tests.failed">
+ <sysproperty key="cactus.config" file="${target.dir}/test.properties"/>
<classpath>
<path refid="project.classpath"/>
<@[EMAIL PROTECTED] location="${clover.jar}"[EMAIL PROTECTED]@>
1.11 +30 -1
jakarta-cactus/samples/servlet/src/scripts/j2ee13/build.properties
Index: build.properties
===================================================================
RCS file:
/home/cvs/jakarta-cactus/samples/servlet/src/scripts/j2ee13/build.properties,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- build.properties 10 Aug 2003 13:55:38 -0000 1.10
+++ build.properties 13 Oct 2003 05:43:41 -0000 1.11
@@ -46,3 +46,32 @@
#cactus.home.orion2x = c:/Apps/orion-2.0.2
#cactus.home.jboss3x = c:/Apps/jboss-3.2.1
#cactus.home.weblogic7x = c:/bea/weblogic700
+
+# -----------------------------------------------------------------------------
+# Logging properties
+# -----------------------------------------------------------------------------
+
+# Disable logging by default when running the tests. If you wish to use a
+# logging subsystem, uncomment the line below. That will let Commons logging
+# decide automatically of a suitable logging system for you. For more info, see
+#
http://jakarta.apache.org/commons/logging/api/org/apache/commons/logging/package-summary.html#package_description
+org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog
+
+# ---- JDK 1.4 logging properties
+
+# Following properties are useful if you're using the JDK 1.4 logging subsystem
+# and wish to output logs to the console. Comment the NoOpLog line above and
+# uncommment the following lines as needed.
+java.util.logging.config.file=${basedir}/build.properties
+handlers= java.util.logging.FileHandler,java.util.logging.ConsoleHandler
+java.util.logging.ConsoleHandler.level = FINEST
+java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
+java.util.logging.FileHandler.pattern = test%u.log
+java.util.logging.FileHandler.limit = 50000
+java.util.logging.FileHandler.count = 1
+java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter
+
+# If you want to provide finer grained logging, restrict the level for the
+# specific package name.
+# For example: org.apache.cactus.server.level = FINEST
+org.apache.cactus.level = FINEST
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]