[jboss-cvs] JBossAS SVN: r57505 - trunk/system/src/main/org/jboss/system/server/profileservice
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Oct 9 00:04:13 EDT 2006
Author: scott.stark at jboss.org
Date: 2006-10-09 00:04:11 -0400 (Mon, 09 Oct 2006)
New Revision: 57505
Modified:
trunk/system/src/main/org/jboss/system/server/profileservice/VFSScanner.java
Log:
Filter the component regardless of its type
Modified: trunk/system/src/main/org/jboss/system/server/profileservice/VFSScanner.java
===================================================================
--- trunk/system/src/main/org/jboss/system/server/profileservice/VFSScanner.java 2006-10-08 21:54:56 UTC (rev 57504)
+++ trunk/system/src/main/org/jboss/system/server/profileservice/VFSScanner.java 2006-10-09 04:04:11 UTC (rev 57505)
@@ -527,12 +527,12 @@
for (VirtualFile component : components)
{
+ // Filter the component regardless of its type
+ if( filter != null && filter.accepts(component) == false)
+ continue;
if (component.isLeaf())
{
- if (filter == null || filter.accepts(component))
- {
- list.add(component);
- }
+ list.add(component);
}
// TODO replace . in the name with isArchive() == false?
else if (component.getName().indexOf('.') == -1 && this.doRecursiveSearch)
More information about the jboss-cvs-commits
mailing list