[jboss-cvs] JBossAS SVN: r82005 - projects/jboss-seam-int/branches/Branch_5_0/jbossas/src/main/java/org/jboss/seam/integration/jbossas/vfs.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Dec 3 04:19:26 EST 2008
Author: petemuir
Date: 2008-12-03 04:19:26 -0500 (Wed, 03 Dec 2008)
New Revision: 82005
Modified:
projects/jboss-seam-int/branches/Branch_5_0/jbossas/src/main/java/org/jboss/seam/integration/jbossas/vfs/VFSScanner.java
Log:
Allow directories to be excluded.
Modified: projects/jboss-seam-int/branches/Branch_5_0/jbossas/src/main/java/org/jboss/seam/integration/jbossas/vfs/VFSScanner.java
===================================================================
--- projects/jboss-seam-int/branches/Branch_5_0/jbossas/src/main/java/org/jboss/seam/integration/jbossas/vfs/VFSScanner.java 2008-12-03 09:12:57 UTC (rev 82004)
+++ projects/jboss-seam-int/branches/Branch_5_0/jbossas/src/main/java/org/jboss/seam/integration/jbossas/vfs/VFSScanner.java 2008-12-03 09:19:26 UTC (rev 82005)
@@ -109,8 +109,22 @@
public void scanDirectories(File[] directories)
{
+ scanDirectories(directories, new File[0]);
+ }
+
+ public void scanDirectories(File[] directories, File[] excludedDirectories)
+ {
for (File dir : directories)
{
+ for (File excludedDirectory : excludedDirectories)
+ {
+ if (dir.equals(excludedDirectory))
+ {
+ log.trace("skipping excluded directory: " + dir);
+ continue;
+ }
+ }
+
try
{
VirtualFile root = getRoot(dir.toURL(), 0);
More information about the jboss-cvs-commits
mailing list