ASF Bugzilla – Attachment 29687 Details for
Bug 54240
Configurable system level tagPlugins.xml
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for TagPluginManager.java
TagPluginManager.diff (text/plain), 1.14 KB, created by
Sheldon Shao
on 2012-12-04 07:31:23 UTC
(
hide
)
Description:
Patch for TagPluginManager.java
Filename:
MIME Type:
Creator:
Sheldon Shao
Created:
2012-12-04 07:31:23 UTC
Size:
1.14 KB
patch
obsolete
>Index: org/apache/jasper/compiler/TagPluginManager.java >=================================================================== >--- org/apache/jasper/compiler/TagPluginManager.java (revision 1416791) >+++ org/apache/jasper/compiler/TagPluginManager.java (working copy) >@@ -68,14 +68,25 @@ > }); > > } >- >+ >+ public static final String DEFAULT_TAG_PLUGINS_XML = System.getProperty("org.apache.jasper.compiler.tagplugins.DEFAULT_TAG_PLUGINS_XML"); >+ > private void init(ErrorDispatcher err) throws JasperException { > if (initialized) > return; > > InputStream is = ctxt.getResourceAsStream(TAG_PLUGINS_XML); >- if (is == null) >- return; >+ if (is == null) { >+ if (DEFAULT_TAG_PLUGINS_XML != null) { >+ is = ctxt.getClassLoader().getResourceAsStream(DEFAULT_TAG_PLUGINS_XML); >+ if (is == null) { >+ return; >+ } >+ } >+ else { >+ return; >+ } >+ } > > TreeNode root = (new ParserUtils()).parseXMLDocument(TAG_PLUGINS_XML, > is);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 54240
:
29687
|
29737
|
29738
|
29739
|
29740