aboutsummaryrefslogtreecommitdiffstats
path: root/loadtime
diff options
context:
space:
mode:
authoravasseur <avasseur>2005-05-30 10:00:21 +0000
committeravasseur <avasseur>2005-05-30 10:00:21 +0000
commitf14646f57a93e7ec865416048c4491d9943064e5 (patch)
treead79eab1c3e336ca62b973d30e2fe7613cd997d6 /loadtime
parentd60e26a239d60ed0a2f2beab51c8a890c748360e (diff)
downloadaspectj-f14646f57a93e7ec865416048c4491d9943064e5.tar.gz
aspectj-f14646f57a93e7ec865416048c4491d9943064e5.zip
#96371 META-INF/aop.xml lookup fix + test
Diffstat (limited to 'loadtime')
-rw-r--r--loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java b/loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java
index f41041332..b3e361ada 100644
--- a/loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java
+++ b/loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java
@@ -40,6 +40,8 @@ import org.aspectj.weaver.tools.WeavingAdaptor;
*/
public class ClassLoaderWeavingAdaptor extends WeavingAdaptor {
+ private final static String AOP_XML = "META-INF/aop.xml";
+
//ATAJ LTW include/exclude
private List m_includeTypePattern = new ArrayList();
private List m_excludeTypePattern = new ArrayList();
@@ -106,7 +108,7 @@ public class ClassLoaderWeavingAdaptor extends WeavingAdaptor {
private void registerDefinitions(final BcelWeaver weaver, final ClassLoader loader) {
try {
//TODO av underoptimized: we will parse each XML once per CL that see it
- Enumeration xmls = loader.getResources("/META-INF/aop.xml");
+ Enumeration xmls = loader.getResources(AOP_XML);
List definitions = new ArrayList();
//TODO av dev mode needed ? TBD -Daj5.def=...