You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by do...@apache.org on 2003/06/02 11:49:29 UTC
cvs commit: avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger SimpleLogKitManager.java
donaldp 2003/06/02 02:49:29
Modified: logger/src/java/org/apache/avalon/excalibur/logger
SimpleLogKitManager.java
Log:
Default to current working dir if context not specified.
Submitted By: Mauro Talevi <ma...@aquilonia.org>
Revision Changes Path
1.5 +8 -1 avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/SimpleLogKitManager.java
Index: SimpleLogKitManager.java
===================================================================
RCS file: /home/cvs/avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/SimpleLogKitManager.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- SimpleLogKitManager.java 27 May 2003 07:30:28 -0000 1.4
+++ SimpleLogKitManager.java 2 Jun 2003 09:49:29 -0000 1.5
@@ -117,7 +117,14 @@
public void contextualize( final Context context )
throws ContextException
{
- m_baseDirectory = (File)context.get( "app.home" );
+ try
+ {
+ m_baseDirectory = (File)context.get( "app.home" );
+ }
+ catch( ContextException e )
+ {
+ m_baseDirectory = new File( "." );
+ }
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org