You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by le...@apache.org on 2004/02/26 23:42:03 UTC
cvs commit: avalon/fortress/tools/src/java/org/apache/avalon/fortress/tools FortressBean.java
leosutic 2004/02/26 14:42:03
Modified: fortress/tools/src/java/org/apache/avalon/fortress/tools
FortressBean.java
Log:
Removed dependency on commons-logging.
Revision Changes Path
1.4 +2 -6 avalon/fortress/tools/src/java/org/apache/avalon/fortress/tools/FortressBean.java
Index: FortressBean.java
===================================================================
RCS file: /home/cvs/avalon/fortress/tools/src/java/org/apache/avalon/fortress/tools/FortressBean.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- FortressBean.java 21 Feb 2004 13:27:02 -0000 1.3
+++ FortressBean.java 26 Feb 2004 22:42:03 -0000 1.4
@@ -31,7 +31,6 @@
import org.apache.avalon.framework.service.ServiceException;
import org.apache.avalon.framework.service.ServiceManager;
import org.apache.avalon.framework.service.Serviceable;
-import org.apache.commons.logging.impl.AvalonLogger;
/**
* Bean for making it easier to run Fortress, for example as Ant task.
@@ -82,9 +81,6 @@
// Get the root container initialized
this.cm = new DefaultContainerManager(config.getContext());
ContainerUtil.initialize(cm);
- // set the static logger for commons logging
- AvalonLogger.setDefaultLogger(cm.getLogger());
- System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.AvalonLogger");
this.container = (DefaultContainer) cm.getContainer();
this.sm = container.getServiceManager();
@@ -127,7 +123,7 @@
public void dispose() {
// Properly clean up when we are done
org.apache.avalon.framework.container.ContainerUtil.dispose( cm );
- System.getProperties().remove("org.apache.commons.logging.Log");
+
//system exit, in case we were running some GUI and some thread is still active
if (this.systemExitOnDispose) {
Thread.yield();
---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org