|
Lines 15-20
Link Here
|
| 15 |
import java.util.HashMap; |
15 |
import java.util.HashMap; |
| 16 |
import java.util.HashSet; |
16 |
import java.util.HashSet; |
| 17 |
import java.util.Iterator; |
17 |
import java.util.Iterator; |
|
|
18 |
import java.util.List; |
| 18 |
import java.util.Map; |
19 |
import java.util.Map; |
| 19 |
import java.util.Set; |
20 |
import java.util.Set; |
| 20 |
|
21 |
|
|
Lines 248-260
Link Here
|
| 248 |
} |
249 |
} |
| 249 |
if (!virtualDependentResources.isEmpty()) { |
250 |
if (!virtualDependentResources.isEmpty()) { |
| 250 |
// TODO Implement support for WebFragment resources |
251 |
// TODO Implement support for WebFragment resources |
| 251 |
// for (Map.Entry<String, List<String>> entry : virtualDependentResources.entrySet()) { |
252 |
for (Map.Entry<String, List<String>> entry : virtualDependentResources.entrySet()) { |
| 252 |
// String rtPath = entry.getKey(); |
253 |
String rtPath = entry.getKey(); |
| 253 |
// List<String> locations = entry.getValue(); |
254 |
List<String> locations = entry.getValue(); |
| 254 |
// for (String location : locations) { |
255 |
for (String location : locations) { |
| 255 |
// |
256 |
PostResources postResources = (PostResources)context.getResources().createElement("PostResources"); |
| 256 |
// } |
257 |
postResources.setClassName("org.apache.catalina.webresources.DirResourceSet"); |
| 257 |
// } |
258 |
postResources.setBase(location); |
|
|
259 |
postResources.setWebAppMount(rtPath.length() > 0 ? rtPath : "/"); |
| 260 |
postResources.setInternalPath("/"); |
| 261 |
postResources.setClassLoaderOnly("false"); |
| 262 |
} |
| 263 |
} |
| 258 |
} |
264 |
} |
| 259 |
virtualDependentResources.clear(); |
265 |
virtualDependentResources.clear(); |
| 260 |
|
266 |
|