[jboss-cvs] JBossAS SVN: r94852 - projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Oct 14 06:44:46 EDT 2009
Author: alesj
Date: 2009-10-14 06:44:46 -0400 (Wed, 14 Oct 2009)
New Revision: 94852
Added:
projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/AbstractPatternVirtualFileFilter.java
projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/ExcludeFileNameVirtualFileFilter.java
projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/ExcludeFilePathVirtualFileFilter.java
projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/ExcludePatternVirtualFileFilter.java
projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/FileNameVirtualFileFilter.java
projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/IncludeExcludeVisitorAttributes.java
projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/IncludeFileNameVirtualFileFilter.java
projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/IncludeFilePathVirtualFileFilter.java
projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/IncludePatternVirtualFileFilter.java
Log:
Port AS code.
Added: projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/AbstractPatternVirtualFileFilter.java
===================================================================
--- projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/AbstractPatternVirtualFileFilter.java (rev 0)
+++ projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/AbstractPatternVirtualFileFilter.java 2009-10-14 10:44:46 UTC (rev 94852)
@@ -0,0 +1,66 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.virtual.plugins.vfs.helpers;
+
+import java.util.regex.Pattern;
+
+import org.jboss.virtual.VirtualFileFilter;
+import org.jboss.virtual.VirtualFile;
+
+/**
+ * Regexp patter filter.
+ *
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ */
+public abstract class AbstractPatternVirtualFileFilter implements VirtualFileFilter
+{
+ private Pattern pattern;
+
+ public AbstractPatternVirtualFileFilter(String regexp)
+ {
+ if (regexp == null)
+ throw new IllegalArgumentException("Null regexp");
+
+ pattern = Pattern.compile(regexp);
+ }
+
+ /**
+ * Extract match string from file.
+ *
+ * @param file the file
+ * @return extracted match string
+ */
+ protected abstract String getMatchString(VirtualFile file);
+
+ /**
+ * Should we match the pattern.
+ *
+ * @return the match flag
+ */
+ protected abstract boolean doMatch();
+
+ public boolean accepts(VirtualFile file)
+ {
+ String string = getMatchString(file);
+ return pattern.matcher(string).matches() == doMatch();
+ }
+}
Added: projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/ExcludeFileNameVirtualFileFilter.java
===================================================================
--- projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/ExcludeFileNameVirtualFileFilter.java (rev 0)
+++ projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/ExcludeFileNameVirtualFileFilter.java 2009-10-14 10:44:46 UTC (rev 94852)
@@ -0,0 +1,42 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.virtual.plugins.vfs.helpers;
+
+import org.jboss.virtual.VirtualFile;
+
+/**
+ * Exclude file name filter.
+ *
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ */
+public class ExcludeFileNameVirtualFileFilter extends ExcludePatternVirtualFileFilter
+{
+ public ExcludeFileNameVirtualFileFilter(String regexp)
+ {
+ super(regexp);
+ }
+
+ protected String getMatchString(VirtualFile file)
+ {
+ return file.getName();
+ }
+}
\ No newline at end of file
Added: projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/ExcludeFilePathVirtualFileFilter.java
===================================================================
--- projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/ExcludeFilePathVirtualFileFilter.java (rev 0)
+++ projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/ExcludeFilePathVirtualFileFilter.java 2009-10-14 10:44:46 UTC (rev 94852)
@@ -0,0 +1,42 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.virtual.plugins.vfs.helpers;
+
+import org.jboss.virtual.VirtualFile;
+
+/**
+ * Exclude file path filter.
+ *
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ */
+public class ExcludeFilePathVirtualFileFilter extends ExcludePatternVirtualFileFilter
+{
+ public ExcludeFilePathVirtualFileFilter(String regexp)
+ {
+ super(regexp);
+ }
+
+ protected String getMatchString(VirtualFile file)
+ {
+ return file.getPathName();
+ }
+}
\ No newline at end of file
Added: projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/ExcludePatternVirtualFileFilter.java
===================================================================
--- projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/ExcludePatternVirtualFileFilter.java (rev 0)
+++ projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/ExcludePatternVirtualFileFilter.java 2009-10-14 10:44:46 UTC (rev 94852)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.virtual.plugins.vfs.helpers;
+
+/**
+ * Exclude pattern filter.
+ *
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ */
+public abstract class ExcludePatternVirtualFileFilter extends AbstractPatternVirtualFileFilter
+{
+ public ExcludePatternVirtualFileFilter(String regexp)
+ {
+ super(regexp);
+ }
+
+ protected boolean doMatch()
+ {
+ return false;
+ }
+}
\ No newline at end of file
Added: projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/FileNameVirtualFileFilter.java
===================================================================
--- projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/FileNameVirtualFileFilter.java (rev 0)
+++ projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/FileNameVirtualFileFilter.java 2009-10-14 10:44:46 UTC (rev 94852)
@@ -0,0 +1,100 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.virtual.plugins.vfs.helpers;
+
+import java.util.Set;
+import java.util.Map;
+
+import org.jboss.virtual.VirtualFileFilter;
+import org.jboss.virtual.VirtualFile;
+import org.jboss.logging.Logger;
+
+/**
+ * Exclude virtual file by file name and path.
+ *
+ * @author ales.justin at jboss.org
+ */
+public class FileNameVirtualFileFilter implements VirtualFileFilter
+{
+ protected Logger log = Logger.getLogger(getClass());
+ private Map<String, Set<String>> excludes;
+
+ public FileNameVirtualFileFilter(Map<String, Set<String>> excludes)
+ {
+ if (excludes == null || excludes.isEmpty())
+ throw new IllegalArgumentException("Null or empty excludes.");
+
+ this.excludes = excludes;
+ }
+
+ /**
+ * Do we accept file.
+ *
+ * If pathName contains any of the keys,
+ * * if the value is null - then do exclude
+ * * if value is not null - only exclude if it value contains simple name
+ *
+ * @param file the virtual file
+ * @return false if file is excluded by excludes map, true other wise
+ */
+ public boolean accepts(VirtualFile file)
+ {
+ String pathName = getPathName(file);
+ for (Map.Entry<String, Set<String>> entry : excludes.entrySet())
+ {
+ String key = entry.getKey();
+ if (pathName.contains(key))
+ {
+ String simpleName = file.getName();
+ Set<String> value = entry.getValue();
+ if (value == null || value.contains(simpleName))
+ {
+ if (log.isTraceEnabled())
+ log.trace("Excluding " + pathName);
+
+ return false;
+ }
+ }
+ }
+ return true;
+ }
+
+ /**
+ * Get the path name for the VirtualFile.
+ *
+ * @param file the virtual file
+ * @return the path name
+ */
+ protected String getPathName(VirtualFile file)
+ {
+ try
+ {
+ // prefer the URI, as the pathName might
+ // return an empty string for temp virtual files
+ return file.toURI().toString();
+ }
+ catch(Exception e)
+ {
+ return file.getPathName();
+ }
+ }
+}
\ No newline at end of file
Added: projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/IncludeExcludeVisitorAttributes.java
===================================================================
--- projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/IncludeExcludeVisitorAttributes.java (rev 0)
+++ projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/IncludeExcludeVisitorAttributes.java 2009-10-14 10:44:46 UTC (rev 94852)
@@ -0,0 +1,89 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.virtual.plugins.vfs.helpers;
+
+import java.util.Set;
+import java.util.Collections;
+import java.net.URL;
+
+import org.jboss.virtual.VisitorAttributes;
+import org.jboss.virtual.VirtualFileFilter;
+import org.jboss.virtual.VirtualFile;
+import org.jboss.logging.Logger;
+
+/**
+ * Include/exclude visitor attributes.
+ *
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class IncludeExcludeVisitorAttributes extends VisitorAttributes implements VirtualFileFilter
+{
+ private Logger log = Logger.getLogger(getClass());
+
+ private Set<String> includes;
+ private Set<String> excludes;
+
+ public IncludeExcludeVisitorAttributes(Set<String> includes, Set<String> excludes)
+ {
+ if (includes == null)
+ includes = Collections.emptySet();
+ if (excludes == null)
+ excludes = Collections.emptySet();
+
+ this.includes = includes;
+ this.excludes = excludes;
+
+ setIncludeRoot(false);
+ setLeavesOnly(true);
+ setRecurseFilter(this);
+ }
+
+ public boolean accepts(VirtualFile file)
+ {
+ try
+ {
+ URL url = file.toURL();
+ String urlString = url.toExternalForm();
+
+ for (String include : includes)
+ {
+ if (urlString.contains(include) == false)
+ return false;
+ }
+
+ for (String exclude : excludes)
+ {
+ if (urlString.contains(exclude))
+ return false;
+ }
+
+ return true;
+ }
+ catch (Exception e)
+ {
+ if (log.isTraceEnabled())
+ log.trace("Exception while filtering file: " + file, e);
+
+ return false;
+ }
+ }
+}
\ No newline at end of file
Added: projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/IncludeFileNameVirtualFileFilter.java
===================================================================
--- projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/IncludeFileNameVirtualFileFilter.java (rev 0)
+++ projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/IncludeFileNameVirtualFileFilter.java 2009-10-14 10:44:46 UTC (rev 94852)
@@ -0,0 +1,42 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.virtual.plugins.vfs.helpers;
+
+import org.jboss.virtual.VirtualFile;
+
+/**
+ * Include file name filter.
+ *
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ */
+public class IncludeFileNameVirtualFileFilter extends IncludePatternVirtualFileFilter
+{
+ public IncludeFileNameVirtualFileFilter(String regexp)
+ {
+ super(regexp);
+ }
+
+ protected String getMatchString(VirtualFile file)
+ {
+ return file.getName();
+ }
+}
\ No newline at end of file
Added: projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/IncludeFilePathVirtualFileFilter.java
===================================================================
--- projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/IncludeFilePathVirtualFileFilter.java (rev 0)
+++ projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/IncludeFilePathVirtualFileFilter.java 2009-10-14 10:44:46 UTC (rev 94852)
@@ -0,0 +1,42 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.virtual.plugins.vfs.helpers;
+
+import org.jboss.virtual.VirtualFile;
+
+/**
+ * Include file path filter.
+ *
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ */
+public class IncludeFilePathVirtualFileFilter extends IncludePatternVirtualFileFilter
+{
+ public IncludeFilePathVirtualFileFilter(String regexp)
+ {
+ super(regexp);
+ }
+
+ protected String getMatchString(VirtualFile file)
+ {
+ return file.getPathName();
+ }
+}
\ No newline at end of file
Added: projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/IncludePatternVirtualFileFilter.java
===================================================================
--- projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/IncludePatternVirtualFileFilter.java (rev 0)
+++ projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/vfs/helpers/IncludePatternVirtualFileFilter.java 2009-10-14 10:44:46 UTC (rev 94852)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.virtual.plugins.vfs.helpers;
+
+/**
+ * Include pattern filter.
+ *
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ */
+public abstract class IncludePatternVirtualFileFilter extends AbstractPatternVirtualFileFilter
+{
+ public IncludePatternVirtualFileFilter(String regexp)
+ {
+ super(regexp);
+ }
+
+ protected boolean doMatch()
+ {
+ return true;
+ }
+}
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list