Implement support for using *.jar pattern in VirtualWebappLoader to specify all JAR...
authorkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 28 Jun 2010 15:59:12 +0000 (15:59 +0000)
committerkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 28 Jun 2010 15:59:12 +0000 (15:59 +0000)
commit0f393c844c09f635e96ffc2d8e10a9c208dc09fd
tree95a51f2b5f537fa8d6b0c2ba885280404ae4a2a4
parent870f56cbd0b88a452a9d253ecdea8f7d2ec6b93e
Implement support for using *.jar pattern in VirtualWebappLoader to specify all JAR files in a certain directory.

This is inspired by Bootstrap.createClassLoader(..) and ClassLoaderFactory.createClassLoader(..).
There is a small difference with regards to ClassLoaderFactory.createClassLoader(..) implementation:
1. I removed the file.canRead() checks as I think that they are not necessary here. I am checking existence and type only.
2. Note that isFile()/isDirectory() are documented to return false if the path does not exist, so using a separate exists() call there is not necessary.

Also three other changes:
1. Added trim() to the tokens.
2. Implemented debug logging.
3. Removed "not for production" warning from the JavaDoc.

An update for the documentation (/config/loader.html) should follow later.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@958615 13f79535-47bb-0310-9956-ffa450edef68
java/org/apache/catalina/loader/LocalStrings.properties
java/org/apache/catalina/loader/VirtualWebappLoader.java
webapps/docs/changelog.xml