aboutsummaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
authoraclement <aclement>2009-02-12 16:40:23 +0000
committeraclement <aclement>2009-02-12 16:40:23 +0000
commit78e5fb4ad589d7bc83c388a6f3756d32e37b4b79 (patch)
tree600524d911b803a6119131778924b3bda35fc700 /weaver
parent41e23851e2f2cb8e1612acc1ad96f57ac60e949c (diff)
downloadaspectj-78e5fb4ad589d7bc83c388a6f3756d32e37b4b79.tar.gz
aspectj-78e5fb4ad589d7bc83c388a6f3756d32e37b4b79.zip
124460: aop.xml used for compilation: AJDT interface support
Diffstat (limited to 'weaver')
-rw-r--r--weaver/src/org/aspectj/weaver/bcel/BcelWorld.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelWorld.java b/weaver/src/org/aspectj/weaver/bcel/BcelWorld.java
index 91125ff71..1d9b92d6e 100644
--- a/weaver/src/org/aspectj/weaver/bcel/BcelWorld.java
+++ b/weaver/src/org/aspectj/weaver/bcel/BcelWorld.java
@@ -811,8 +811,13 @@ public class BcelWorld extends World implements Repository {
* @param xmlFiles list of File objects representing any aop.xml files passed in to configure the build process
*/
public void setXmlFiles(List xmlFiles) {
+ if (!isXmlConfiguredWorld && !xmlFiles.isEmpty()) {
+ getMessageHandler().handleMessage(
+ MessageUtil
+ .error("xml configuration files only supported by the compiler when -xmlConfigured option specified"));
+ return;
+ }
if (!xmlFiles.isEmpty()) {
- isXmlConfiguredWorld = true;
xmlConfiguration = new WeavingXmlConfig(this);
}
for (Iterator iterator = xmlFiles.iterator(); iterator.hasNext();) {
@@ -832,8 +837,12 @@ public class BcelWorld extends World implements Repository {
}
}
+ public void setXmlConfigured(boolean b) {
+ this.isXmlConfiguredWorld = b;
+ }
+
public boolean isXmlConfigured() {
- return isXmlConfiguredWorld;
+ return isXmlConfiguredWorld && xmlConfiguration != null;
}
public boolean isAspectIncluded(ResolvedType aspectType) {