Author: ehillenius
Date: Thu Oct 12 04:55:03 2006
New Revision: 463217

URL: http://svn.apache.org/viewvc?view=rev&rev=463217
Log:
formatted

Modified:
    
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/PackageResource.java

Modified: 
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/PackageResource.java
URL: 
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/PackageResource.java?view=diff&rev=463217&r1=463216&r2=463217
==============================================================================
--- 
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/PackageResource.java
 (original)
+++ 
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/PackageResource.java
 Thu Oct 12 04:55:03 2006
@@ -67,7 +67,6 @@
  */
 public class PackageResource extends WebResource
 {
-
        /**
         * Exception thrown when the creation of a package resource is not 
allowed.
         */
@@ -356,11 +355,7 @@
                                                        throw e;
 
                                                String filename = 
jarZipPart.substring(0, index + 4); // 4 =
-                                               // len
-                                               // of
-                                               // ".jar"
-                                               // or
-                                               // ".zip"
+                                               // len of ".jar" or ".zip"
                                                log.debug("trying the filename: 
" + filename + " to load as a zip/jar.");
                                                JarFile jarFile = new 
JarFile(filename, false);
                                                scanJarFile(scope, pattern, 
recurse, resources, packageRef, jarFile);
@@ -372,9 +367,6 @@
                                                throw new 
IllegalStateException("unable to read resources from directory "
                                                                + basedir);
                                        }
-                                       // should not be necessary anymore
-                                       // addResources(scope, pattern, 
resources, new
-                                       // StringBuffer(""), basedir, recurse);
                                }
                        }
                }
@@ -555,8 +547,8 @@
                // Check that resource was found
                if (resourceStream == null)
                {
-                       String msg = "Unable to find package resource [path = " 
+ absolutePath
-                                       + ", style = " + style + ", locale = " 
+ locale + "]";
+                       String msg = "Unable to find package resource [path = " 
+ absolutePath + ", style = "
+                                       + style + ", locale = " + locale + "]";
                        log.warn(msg);
                        if (RequestCycle.get() instanceof WebRequestCycle)
                        {


Reply via email to