avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nic...@apache.org
Subject svn commit: rev 57568 - avalon/trunk/planet/facilities/http/impl/src/main/org/apache/avalon/http/impl
Date Sat, 13 Nov 2004 09:30:55 GMT
Author: niclas
Date: Sat Nov 13 01:30:53 2004
New Revision: 57568

Modified:
   avalon/trunk/planet/facilities/http/impl/src/main/org/apache/avalon/http/impl/HttpContextImpl.java
   avalon/trunk/planet/facilities/http/impl/src/main/org/apache/avalon/http/impl/WebApplicationContext.java
Log:
Resourcebase fix.

Modified: avalon/trunk/planet/facilities/http/impl/src/main/org/apache/avalon/http/impl/HttpContextImpl.java
==============================================================================
--- avalon/trunk/planet/facilities/http/impl/src/main/org/apache/avalon/http/impl/HttpContextImpl.java
(original)
+++ avalon/trunk/planet/facilities/http/impl/src/main/org/apache/avalon/http/impl/HttpContextImpl.java
Sat Nov 13 01:30:53 2004
@@ -164,10 +164,9 @@
         
         Configuration welcomeFiles = conf.getChild( "welcome-files" );
         configureWelcomeFiles( welcomeFiles );
-        
+
         String resourceBase = conf.getChild( "resource-base").getValue( "." );
-        File rsrc = new File( resourceBase );
-        setResourceBase( rsrc.getAbsolutePath() );
+        setResourceBase( resourceBase );
         
         int maxCachedFilesize = conf.getChild( "max-cached-filesize" ).getValueAsInteger(
-1 );
         if( maxCachedFilesize > 0 )

Modified: avalon/trunk/planet/facilities/http/impl/src/main/org/apache/avalon/http/impl/WebApplicationContext.java
==============================================================================
--- avalon/trunk/planet/facilities/http/impl/src/main/org/apache/avalon/http/impl/WebApplicationContext.java
(original)
+++ avalon/trunk/planet/facilities/http/impl/src/main/org/apache/avalon/http/impl/WebApplicationContext.java
Sat Nov 13 01:30:53 2004
@@ -191,8 +191,7 @@
         configureWelcomeFiles( welcomeFiles );
         
         String resourceBase = conf.getChild( "resource-base").getValue( "." );
-        File rsrc = new File( resourceBase );
-        setResourceBase( rsrc.getAbsolutePath() );
+        setResourceBase( resourceBase );
         
         int maxCachedFilesize = conf.getChild( "max-cached-filesize" ).getValueAsInteger(
-1 );
         if( maxCachedFilesize > 0 )

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message