diff options
author | avasseur <avasseur> | 2005-05-30 10:00:21 +0000 |
---|---|---|
committer | avasseur <avasseur> | 2005-05-30 10:00:21 +0000 |
commit | f14646f57a93e7ec865416048c4491d9943064e5 (patch) | |
tree | ad79eab1c3e336ca62b973d30e2fe7613cd997d6 /loadtime | |
parent | d60e26a239d60ed0a2f2beab51c8a890c748360e (diff) | |
download | aspectj-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.java | 4 |
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=... |