Author: violetagg
Date: Tue Oct 15 05:40:40 2013
New Revision: 1532194

URL: http://svn.apache.org/r1532194
Log:
Added small examples for Jar Scanner and Jar Scanner Filter elements. Issue is 
reported via o.a.comments.

Modified:
    tomcat/trunk/webapps/docs/config/jar-scan-filter.xml
    tomcat/trunk/webapps/docs/config/jar-scanner.xml

Modified: tomcat/trunk/webapps/docs/config/jar-scan-filter.xml
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/config/jar-scan-filter.xml?rev=1532194&r1=1532193&r2=1532194&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/config/jar-scan-filter.xml (original)
+++ tomcat/trunk/webapps/docs/config/jar-scan-filter.xml Tue Oct 15 05:40:40 
2013
@@ -41,9 +41,23 @@
   scan.</p>
 
   <p>A Jar Scan Filter element MAY be nested inside a
-  <a href="jar-scanner.html">Jar Scanner</a> component.  If it is not included,
-  a default Jar Scan Filter configuration will be created automatically, which
-  is sufficient for most requirements.</p>
+  <a href="jar-scanner.html">Jar Scanner</a> component.</p>
+
+  <p>For example you can specify additional jar files when scanning for 
pluggable
+  features:</p>
+<source><![CDATA[<Context>
+  ...
+  <JarScanner>
+    <JarScanFilter
+           pluggableScan="${tomcat.util.scan.StandardJarScanFilter.jarsToScan},
+                          my_pluggable_feature.jar"/>
+  </JarScanner>
+  ...
+</Context>]]></source>
+
+  <p>If a Jar Scan Filter element is not included, a default Jar Scan Filter
+  configuration will be created automatically, which is sufficient for most
+  requirements.</p>
 
 </section>
 

Modified: tomcat/trunk/webapps/docs/config/jar-scanner.xml
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/config/jar-scanner.xml?rev=1532194&r1=1532193&r2=1532194&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/config/jar-scanner.xml (original)
+++ tomcat/trunk/webapps/docs/config/jar-scanner.xml Tue Oct 15 05:40:40 2013
@@ -41,9 +41,18 @@
   the web application initialisation.</p>
 
   <p>A Jar Scanner element MAY be nested inside a
-  <a href="context.html">Context</a> component.  If it is not included,
-  a default Jar Scanner configuration will be created automatically, which
-  is sufficient for most requirements.</p>
+  <a href="context.html">Context</a> component.</p>
+
+  <p>For example you can include the bootstrap classpath when scanning for jar
+  files:</p>
+<source><![CDATA[<Context>
+  ...
+  <JarScanner scanBootstrapClassPath="true"/>
+  ...
+</Context>]]></source>
+
+  <p>If a Jar Scanner element is not included, a default Jar Scanner 
configuration
+  will be created automatically, which is sufficient for most requirements.</p>
 
 </section>
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to