Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 243019 Details for
Bug 423759
Implement the "Serve modules without publishing" feature for Tomcat 8
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Add Web Fragment support for Tomcat 8 Serve modules without publishing feature
ServeModuleWithoutPublishing.patch (text/plain), 1.75 KB, created by
Larry Isaacs
on 2014-05-13 07:58:19 EDT
(
hide
)
Description:
Add Web Fragment support for Tomcat 8 Serve modules without publishing feature
Filename:
MIME Type:
Creator:
Larry Isaacs
Created:
2014-05-13 07:58:19 EDT
Size:
1.75 KB
patch
obsolete
>diff --git a/plugins/org.eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/Tomcat80PublishModuleVisitor.java b/plugins/org.eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/Tomcat80PublishModuleVisitor.java >index cdffa35..b944da9 100644 >--- a/plugins/org.eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/Tomcat80PublishModuleVisitor.java >+++ b/plugins/org.eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/Tomcat80PublishModuleVisitor.java >@@ -15,6 +15,7 @@ > import java.util.HashMap; > import java.util.HashSet; > import java.util.Iterator; >+import java.util.List; > import java.util.Map; > import java.util.Set; > >@@ -248,13 +249,18 @@ > } > if (!virtualDependentResources.isEmpty()) { > // TODO Implement support for WebFragment resources >-// for (Map.Entry<String, List<String>> entry : virtualDependentResources.entrySet()) { >-// String rtPath = entry.getKey(); >-// List<String> locations = entry.getValue(); >-// for (String location : locations) { >-// >-// } >-// } >+ for (Map.Entry<String, List<String>> entry : virtualDependentResources.entrySet()) { >+ String rtPath = entry.getKey(); >+ List<String> locations = entry.getValue(); >+ for (String location : locations) { >+ PostResources postResources = (PostResources)context.getResources().createElement("PostResources"); >+ postResources.setClassName("org.apache.catalina.webresources.DirResourceSet"); >+ postResources.setBase(location); >+ postResources.setWebAppMount(rtPath.length() > 0 ? rtPath : "/"); >+ postResources.setInternalPath("/"); >+ postResources.setClassLoaderOnly("false"); >+ } >+ } > } > virtualDependentResources.clear(); >
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
Flags:
eyuen7
:
review+
Actions:
View
|
Diff
Attachments on
bug 423759
: 243019