[jboss-cvs] JBossAS SVN: r57263 - trunk/server/src/etc/conf/default

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Sep 28 09:33:27 EDT 2006


Author: adrian at jboss.org
Date: 2006-09-28 09:33:25 -0400 (Thu, 28 Sep 2006)
New Revision: 57263

Modified:
   trunk/server/src/etc/conf/default/deployer-beans.xml
Log:
Expose some structural rules in the configuration.

Modified: trunk/server/src/etc/conf/default/deployer-beans.xml
===================================================================
--- trunk/server/src/etc/conf/default/deployer-beans.xml	2006-09-28 12:36:47 UTC (rev 57262)
+++ trunk/server/src/etc/conf/default/deployer-beans.xml	2006-09-28 13:33:25 UTC (rev 57263)
@@ -23,8 +23,34 @@
    <bean name="MainDeployer" class="org.jboss.deployers.plugins.deployment.MainDeployerImpl">
       <property name="structureDeployers">
          <list>
+            <!-- WAR Structure -->
+            <bean name="WARStructure" class="org.jboss.deployers.plugins.structure.vfs.war.WARStructure">
+               <property name="webInfLibFilter">
+                  <!-- We accept all .jar files in WEB-INF/lib -->
+                  <bean name="WebIInfLibFilter" class="org.jboss.virtual.plugins.vfs.helpers.SuffixMatchFilter">
+                     <constructor><parameter>.jar</parameter></constructor>
+                  </bean>
+               </property>
+            </bean>
             <!-- JAR Structure -->
-            <bean name="JARStructure" class="org.jboss.deployers.plugins.structure.vfs.jar.JARStructure"/>
+            <bean name="JARStructure" class="org.jboss.deployers.plugins.structure.vfs.jar.JARStructure">
+               <property name="candidateStructureVisitorFactory">
+                  <!-- Any file that is not an ordinary directory is a candidate -->
+                  <bean name="JARStructureCandidates" class="org.jboss.deployers.plugins.structure.vfs.jar.JARCandidateStructureVisitorFactory">
+                     <!-- A filter to exclude some obvious non-subdeployments -->
+                     <property name="filter">
+                        <bean name="JARFilter" class="org.jboss.virtual.plugins.vfs.helpers.SuffixesExcludeFilter">
+                           <constructor><parameter>
+                              <list elementClass="java.lang.String">
+                                 <!-- Exclude class files as subdeployments -->
+                                 <value>.class</value>
+                              </list>
+                           </parameter></constructor>
+                        </bean>
+                     </property>
+                  </bean>
+               </property>
+            </bean>
             <!-- File Structure -->
             <bean name="FileStructure" class="org.jboss.deployers.plugins.structure.vfs.file.FileStructure"/>
          </list>




More information about the jboss-cvs-commits mailing list