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 <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]