2 Replies Latest reply on Mar 28, 2005 2:58 AM by x y

    exclude deployment file types

    x y Newbie

      How do I set up JBoss to exclude a certain file type, like .war, from beeing unpacked and deployed ?

        • 1. Re: exclude deployment file types
          Dimitris Andreadis Master

          The DeploymentScanner is configured at the end of ./conf/jboss-service.xml. This fellow has an attribute that supplies a class, that filters out certain file types:

           <!-- 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>

          You need to provide your own filter class to ignore .war files. If you wait for v4.0.2, this has been already implemented and you can configure the existing filter right there:
           <!-- 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
           <attribute name="FilterInstance"
           <!-- 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>

          • 2. Re: exclude deployment file types
            x y Newbie

            Thanx Dimitris