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

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Aug 1 08:42:42 EDT 2008


Author: alesj
Date: 2008-08-01 08:42:42 -0400 (Fri, 01 Aug 2008)
New Revision: 76570

Modified:
   projects/jboss-deployers/trunk/deployers-vfs/src/main/org/jboss/deployers/vfs/plugins/annotations/AnnotationEnvironmentDeployer.java
Log:
Urls log info.

Modified: projects/jboss-deployers/trunk/deployers-vfs/src/main/org/jboss/deployers/vfs/plugins/annotations/AnnotationEnvironmentDeployer.java
===================================================================
--- projects/jboss-deployers/trunk/deployers-vfs/src/main/org/jboss/deployers/vfs/plugins/annotations/AnnotationEnvironmentDeployer.java	2008-08-01 12:39:31 UTC (rev 76569)
+++ projects/jboss-deployers/trunk/deployers-vfs/src/main/org/jboss/deployers/vfs/plugins/annotations/AnnotationEnvironmentDeployer.java	2008-08-01 12:42:42 UTC (rev 76570)
@@ -151,7 +151,7 @@
     * @return matching urls
     * @throws Exception for any error
     */
-   protected static URL[] getURL(VFSDeploymentUnit unit) throws Exception
+   protected URL[] getURL(VFSDeploymentUnit unit) throws Exception
    {
       List<VirtualFile> classpath = unit.getClassPath();
       if (classpath != null && classpath.isEmpty() == false)
@@ -167,7 +167,13 @@
             if (check != null)
                urls.add(cp.toURL());
          }
-         return urls.toArray(new URL[urls.size()]);
+         if (urls.isEmpty() == false)
+         {
+            if (log.isTraceEnabled())
+               log.trace("Explicit urls: " + urls);
+
+            return urls.toArray(new URL[urls.size()]);
+         }
       }
       return new URL[0];
    }




More information about the jboss-cvs-commits mailing list