You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by mc...@apache.org on 2004/04/21 17:55:25 UTC
cvs commit: avalon/activation/impl/src/test/org/apache/avalon/activation/impl/test AbstractTestCase.java
mcconnell 2004/04/21 08:55:25
Modified: activation/impl/src/test/conf/system kernel.xml
activation/impl/src/test/org/apache/avalon/activation/impl/test
AbstractTestCase.java
Log:
Updates to support logging manager creation.
Revision Changes Path
1.4 +2 -0 avalon/activation/impl/src/test/conf/system/kernel.xml
Index: kernel.xml
===================================================================
RCS file: /home/cvs/avalon/activation/impl/src/test/conf/system/kernel.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- kernel.xml 9 Apr 2004 12:11:48 -0000 1.3
+++ kernel.xml 21 Apr 2004 15:55:25 -0000 1.4
@@ -9,6 +9,8 @@
<artifact spec="@AVALON-LOGGING-LOGKIT-SPEC@"/>
</system>
+ <logging path="conf/system/logging.xml"/>
+
<security>
<profile name="default">
<permissions>
1.9 +19 -0 avalon/activation/impl/src/test/org/apache/avalon/activation/impl/test/AbstractTestCase.java
Index: AbstractTestCase.java
===================================================================
RCS file: /home/cvs/avalon/activation/impl/src/test/org/apache/avalon/activation/impl/test/AbstractTestCase.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- AbstractTestCase.java 9 Apr 2004 12:11:49 -0000 1.8
+++ AbstractTestCase.java 21 Apr 2004 15:55:25 -0000 1.9
@@ -18,6 +18,7 @@
package org.apache.avalon.activation.impl.test;
import java.io.File;
+import java.net.URL;
import junit.framework.TestCase;
@@ -42,6 +43,8 @@
import org.apache.avalon.framework.logger.Logger;
import org.apache.avalon.framework.parameters.Parameters;
+import org.apache.avalon.logging.provider.LoggingManager;
+
import org.apache.avalon.repository.Artifact;
import org.apache.avalon.repository.Repository;
import org.apache.avalon.repository.provider.Factory;
@@ -148,6 +151,22 @@
SystemContextFactory factory =
new DefaultSystemContextFactory( context );
+
+ //
+ // setup the logging manager
+ //
+
+ String logConfigPath = config.getChild( "logging" ).getAttribute( "path" );
+ File file = new File( base, logConfigPath );
+ URL url = file.toURL();
+ LoggingManager logging =
+ DefaultSystemContextFactory.createLoggingManager(
+ context, null, null, url, false );
+ factory.setLoggingManager( logging );
+
+ //
+ // setup security
+ //
Configuration secConfig = config.getChild( "security" );
---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org