[jboss-cvs] JBossAS SVN: r74137 - projects/jboss-deployers/trunk/deployers-vfs/src/main/org/jboss/deployers/vfs/plugins/structure.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Jun 5 07:33:15 EDT 2008


Author: alesj
Date: 2008-06-05 07:33:15 -0400 (Thu, 05 Jun 2008)
New Revision: 74137

Modified:
   projects/jboss-deployers/trunk/deployers-vfs/src/main/org/jboss/deployers/vfs/plugins/structure/VFSStructureBuilder.java
Log:
Better modified msg.

Modified: projects/jboss-deployers/trunk/deployers-vfs/src/main/org/jboss/deployers/vfs/plugins/structure/VFSStructureBuilder.java
===================================================================
--- projects/jboss-deployers/trunk/deployers-vfs/src/main/org/jboss/deployers/vfs/plugins/structure/VFSStructureBuilder.java	2008-06-05 11:14:10 UTC (rev 74136)
+++ projects/jboss-deployers/trunk/deployers-vfs/src/main/org/jboss/deployers/vfs/plugins/structure/VFSStructureBuilder.java	2008-06-05 11:33:15 UTC (rev 74137)
@@ -109,6 +109,7 @@
       if (contextInfo == null)
          return file;
 
+      VirtualFile modified = file;
       ModificationType modificationType = contextInfo.getModificationType();
       if (modificationType != null)
       {
@@ -119,16 +120,21 @@
             log.trace("Modifying file: " + file + ", modification type: " + modificationType);
 
          if (ModificationType.UNPACK == modificationType)
-            file = VFSUtils.unpack(file);
+            modified = VFSUtils.unpack(file);
          else if (ModificationType.EXPLODE == modificationType)
-            file = VFSUtils.explode(file);
+            modified = VFSUtils.explode(file);
          else
             log.warn("Unsupported modification type: " + modificationType);
 
          if (trace && isSupported)
-            log.trace("Modified file: " + file);
+         {
+            if (modified != file)
+               log.trace("Modified file: " + modified);
+            else
+               log.trace("File already modified: " + modified);            
+         }
       }
-      return file;
+      return modified;
    }
 
    protected void applyContextInfo(DeploymentContext context, ContextInfo contextInfo) throws Exception




More information about the jboss-cvs-commits mailing list