struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject svn commit: r1447654 - /struts/struts2/trunk/core/src/main/java/org/apache/struts2/util/fs/JBossFileManager.java
Date Tue, 19 Feb 2013 10:13:53 GMT
Author: lukaszlenart
Date: Tue Feb 19 10:13:53 2013
New Revision: 1447654

URL: http://svn.apache.org/r1447654
Log:
WW-3984 Adds additional logging to check what is wrong

Modified:
    struts/struts2/trunk/core/src/main/java/org/apache/struts2/util/fs/JBossFileManager.java

Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/util/fs/JBossFileManager.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/util/fs/JBossFileManager.java?rev=1447654&r1=1447653&r2=1447654&view=diff
==============================================================================
--- struts/struts2/trunk/core/src/main/java/org/apache/struts2/util/fs/JBossFileManager.java
(original)
+++ struts/struts2/trunk/core/src/main/java/org/apache/struts2/util/fs/JBossFileManager.java
Tue Feb 19 10:13:53 2013
@@ -73,6 +73,9 @@ public class JBossFileManager extends De
                 LOG.debug("Creating revision for URL: " + fileName);
             }
             URL normalizedUrl = normalizeToFileProtocol(fileUrl);
+            if (LOG.isDebugEnabled()) {
+                LOG.debug("Normalized URL for [#0] is [#1]", fileName, normalizedUrl.toString());
+            }
             Revision revision;
             if ("file".equals(normalizedUrl.getProtocol())) {
                 revision = FileRevision.build(normalizedUrl);
@@ -133,6 +136,9 @@ public class JBossFileManager extends De
     protected URL getJBossPhysicalUrl(URL url) throws IOException {
         Object content = url.openConnection().getContent();
         String classContent = content.getClass().toString();
+        if (LOG.isDebugEnabled()) {
+            LOG.debug("Reading physical URL for [#0]", url.toString());
+        }
         if (classContent.startsWith("class org.jboss.vfs.VirtualFile")) { // JBoss 7 and
probably 6
             File physicalFile = readJBossPhysicalFile(content);
             return physicalFile.toURI().toURL();



Mime
View raw message