[jboss-cvs] JBossAS SVN: r92345 - in projects/demos/microcontainer/trunk: bootstrap/src/main/java/org/jboss/demos/system/deployers and 1 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Aug 14 06:24:18 EDT 2009
Author: alesj
Date: 2009-08-14 06:24:18 -0400 (Fri, 14 Aug 2009)
New Revision: 92345
Added:
projects/demos/microcontainer/trunk/bootstrap/src/main/java/org/jboss/demos/system/deployers/EndsWithVirtualFileFilter.java
Modified:
projects/demos/microcontainer/trunk/bootstrap/src/main/resources/META-INF/bootstrap-beans.xml
projects/demos/microcontainer/trunk/pom.xml
Log:
Update libs.
Added: projects/demos/microcontainer/trunk/bootstrap/src/main/java/org/jboss/demos/system/deployers/EndsWithVirtualFileFilter.java
===================================================================
--- projects/demos/microcontainer/trunk/bootstrap/src/main/java/org/jboss/demos/system/deployers/EndsWithVirtualFileFilter.java (rev 0)
+++ projects/demos/microcontainer/trunk/bootstrap/src/main/java/org/jboss/demos/system/deployers/EndsWithVirtualFileFilter.java 2009-08-14 10:24:18 UTC (rev 92345)
@@ -0,0 +1,44 @@
+/*
+ * 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.demos.system.deployers;
+
+import org.jboss.deployers.vfs.spi.structure.modified.AbstractPathNameFilter;
+
+/**
+ * Only accept files that end with suffix.
+ *
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ */
+public class EndsWithVirtualFileFilter extends AbstractPathNameFilter
+{
+ private String suffix;
+
+ public EndsWithVirtualFileFilter(String suffix)
+ {
+ this.suffix = suffix;
+ }
+
+ public boolean accepts(String path)
+ {
+ return path.endsWith(suffix);
+ }
+}
Modified: projects/demos/microcontainer/trunk/bootstrap/src/main/resources/META-INF/bootstrap-beans.xml
===================================================================
--- projects/demos/microcontainer/trunk/bootstrap/src/main/resources/META-INF/bootstrap-beans.xml 2009-08-14 09:58:25 UTC (rev 92344)
+++ projects/demos/microcontainer/trunk/bootstrap/src/main/resources/META-INF/bootstrap-beans.xml 2009-08-14 10:24:18 UTC (rev 92345)
@@ -148,7 +148,11 @@
<parameter><inject bean="MainDeployer" /></parameter>
</constructor>
<property name="cache"><inject bean="StructureModCache" /></property>
- <property name="filter"><bean class="org.jboss.system.server.profile.basic.XmlIncludeVirtualFileFilter" /></property>
+ <property name="filter">
+ <bean class="org.jboss.demos.system.deployers.EndsWithVirtualFileFilter">
+ <constructor><parameter>.xml</parameter></constructor>
+ </bean>
+ </property>
</bean>
<!-- HD scanner -->
Modified: projects/demos/microcontainer/trunk/pom.xml
===================================================================
--- projects/demos/microcontainer/trunk/pom.xml 2009-08-14 09:58:25 UTC (rev 92344)
+++ projects/demos/microcontainer/trunk/pom.xml 2009-08-14 10:24:18 UTC (rev 92345)
@@ -32,14 +32,14 @@
</modules>
<properties>
- <version.jboss.jbossas>5.1.0.CR1</version.jboss.jbossas>
+ <version.jboss.jbossas>5.1.0.GA</version.jboss.jbossas>
<version.jboss.vfs>2.1.2.GA</version.jboss.vfs>
- <version.jboss.man>2.1.0.CR8</version.jboss.man>
- <version.jboss.mdr>2.0.1.GA</version.jboss.mdr>
- <version.jboss.microcontainer>2.0.6.GA</version.jboss.microcontainer>
- <version.jboss.deployers>2.0.7.GA</version.jboss.deployers>
- <version.jboss.classloader>2.0.6.GA</version.jboss.classloader>
- <version.jboss.common.core>2.2.13.GA</version.jboss.common.core>
+ <version.jboss.man>2.1.0.GA</version.jboss.man>
+ <version.jboss.mdr>2.0.2.GA</version.jboss.mdr>
+ <version.jboss.microcontainer>2.0.7.GA</version.jboss.microcontainer>
+ <version.jboss.deployers>2.0.8.GA</version.jboss.deployers>
+ <version.jboss.classloader>2.0.6.SP1</version.jboss.classloader>
+ <version.jboss.common.core>2.2.14.GA</version.jboss.common.core>
<version.jboss.common.logging.spi>2.0.5.GA</version.jboss.common.logging.spi>
<version.jboss.common.logging.log4j>2.0.5.GA</version.jboss.common.logging.log4j>
<version.jbossxb>2.0.1.GA</version.jbossxb>
More information about the jboss-cvs-commits
mailing list