[ http://jira.jboss.com/jira/browse/JBAS-1494?page=history ]
     
Scott M Stark closed JBAS-1494:
-------------------------------

      Assign To: Scott M Stark
     Resolution: Done
    Fix Version:  JBossAS-4.0.2RC1
                 JBossAS-5.0 Alpha

A new FilterInstance attribute allows the prefixes, suffixes and matching 
strings for the ignored files:

      <!-- The FilterInstance specifies a URLLister.URLFilter for scanned
           directories. This DeploymentFilter is initialized with the given
           prefixes, suffixes and matches that define which URLs should be
           ignored.
      -->
      <attribute name="FilterInstance"
         attributeClass="org.jboss.deployment.scanner.DeploymentFilter"
         serialDataType="javaBean">
         <!-- Files starting with theses strings are ignored -->
         <property name="prefixes">#,%,\,,.,_$</property>
         <!-- Files ending with theses strings are ignored -->
         <property 
name="suffixes">#,$,%,.BAK,.old,.orig,.rej,.bak,.sh,\,v,~</property>
         <!-- Files matching with theses strings are ignored -->
         <property 
name="matches">.make.state,.nse_depinfo,CVS,CVS.admin,RCS,RCSLOG,SCCS,TAGS,core,tags</property>
      </attribute>


> Need to expose the filter list for the default Filter implementation on 
> URLDeploymentScanner
> --------------------------------------------------------------------------------------------
>
>          Key: JBAS-1494
>          URL: http://jira.jboss.com/jira/browse/JBAS-1494
>      Project: JBoss Application Server
>         Type: Feature Request
>   Components: MicroContainer bus
>     Versions:  JBossAS-4.0.1 SP1, JBossAS-4.0.1 Final,  JBossAS-3.2.7 Final
>     Reporter: Scott M Stark
>     Assignee: Scott M Stark
>      Fix For:  JBossAS-4.0.2RC1, JBossAS-5.0 Alpha

>
>
> Adding new patterns of files that the URLDeploymentScanner should ignore 
> currently requires a custom class implementation. The default Filter 
> attribute:
> <!-- The Filter specifies a java.io.FileFilter for scanned
> directories.  Any file not accepted by this filter will not be
> deployed.  The org.jboss.deployment.scanner.DeploymentFilter
> rejects the following patterns:
> "#*", "%*", ",*", ".*", "_$*", "*#", "*$", "*%", "*.BAK",
> "*.old", "*.orig", "*.rej", "*.bak", "*,v", "*~", ".make.state",
> ".nse_depinfo", "CVS", "CVS.admin", "RCS", "RCSLOG", "SCCS",
> "TAGS", "core", "tags"
> -->
> <attribute 
> name="Filter">org.jboss.deployment.scanner.DeploymentFilter</attribute>
> cannot have prefixes and suffixes added without creating a custom filter 
> implementation. There should be basic support for configuring the 
> DeploymentFilter using either the javaBean support:
>    <mbean code="org.jboss.test.jmx.complexattrs.ComplexAttrTests"
>       name="test:name=ComplexAttrTests,case=#1">
>       <attribute name="Bean2"
>          attributeClass="org.jboss.test.jmx.complexattrs.JavaBean2"
>          serialDataType="javaBean">
>          <property name="i">12345678</property>
>          <property name="f">1.23456</property>
>          <property name="d">3.14159265358979323846</property>
>          <property name="l">1234567890</property>
>       </attribute>
>    </mbean>
> or, the under development jbossxb mechanism:
> <!-- Tell JBossXB about the namespace to factory mappings in this doc -->
> <?jbossxb ns="urn:schema:ns1:jbossxb"
>    factory="org.jboss.test.jmx.complexattrs.JavaBeanObjectModelFactory"?>
> ...
>    <!-- Test the jbossxb attribute data type syntax -->
>    <mbean code="org.jboss.test.jmx.complexattrs.ComplexAttrTests"
>       name="test:name=ComplexAttrTests,case=#2">
>       <attribute name="Bean1"
>          attributeClass="org.jboss.test.jmx.complexattrs.JavaBean1"
>          serialDataType="jbossxb"
>          xmlns:ns1="urn:schema:ns1:jbossxb">
>          <ns1:javabean1>
>             <property name="bindAddress">127.0.0.1</property>
>             <property name="someDate">Sun Jan  2 23:26:49 PST 2005</property>
>             <property name="props">
>               prop1=value1
>               prop2=value2
>               prop3=${prop3.systemProperty}
>             </property>
>             <property name="names">name1,name2,name3</property>
>             <property name="someURL">http://www.jboss.org</property>
>          </ns1:javabean1>
>       </attribute>
>    </mbean>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to