avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/loader/src/java/org/apache/excalibur/loader/builder SimpleLoaderResolver.java
Date Thu, 31 Oct 2002 00:22:36 GMT
donaldp     2002/10/30 16:22:36

  Modified:    loader/src/java/org/apache/excalibur/loader/builder
                        SimpleLoaderResolver.java
  Log:
  Make sure the urls are wrapped in jar urls if they are a jar before trying to retrieve the
manifest.
  
  Revision  Changes    Path
  1.4       +3 -2      jakarta-avalon-excalibur/loader/src/java/org/apache/excalibur/loader/builder/SimpleLoaderResolver.java
  
  Index: SimpleLoaderResolver.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/loader/src/java/org/apache/excalibur/loader/builder/SimpleLoaderResolver.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SimpleLoaderResolver.java	30 Oct 2002 08:34:20 -0000	1.3
  +++ SimpleLoaderResolver.java	31 Oct 2002 00:22:36 -0000	1.4
  @@ -366,8 +366,9 @@
               {
                   try
                   {
  +                    final URL url = new URL( "jar:" + element + "!/" );
                       final JarURLConnection connection =
  -                        (JarURLConnection)element.openConnection();
  +                        (JarURLConnection)url.openConnection();
                       final Manifest manifest = connection.getManifest();
                       if( null != manifest )
                       {
  
  
  

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


Mime
View raw message