diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2024-02-21 10:35:44 +0700 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2024-02-22 10:28:03 +0700 |
commit | fac5d8cb222719cddfc169d5285d918557b786c5 (patch) | |
tree | f07ceea887d067f3f9e5bb8144efca99664bae7c /tests/features164/aopconfig | |
parent | 610f531d136fab3f2003debc4f5d3260d4a4b3ad (diff) | |
download | aspectj-fac5d8cb222719cddfc169d5285d918557b786c5.tar.gz aspectj-fac5d8cb222719cddfc169d5285d918557b786c5.zip |
Add Ajc164Tests::testMultipleXMLFiles
While researching how and what to document for AJJ option
'-xmlConfigured', I needed to find out what happens in case of multiple
XML config files. Result: They are merged. the new test case for the old
1.6.4 release verifies and documents that. It can also serve as an
example for reference in case of user questions.
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'tests/features164/aopconfig')
-rw-r--r-- | tests/features164/aopconfig/one/A3.java | 3 | ||||
-rw-r--r-- | tests/features164/aopconfig/one/multi1.xml | 9 | ||||
-rw-r--r-- | tests/features164/aopconfig/one/multi2.xml | 5 | ||||
-rw-r--r-- | tests/features164/aopconfig/one/multi3.xml | 5 |
4 files changed, 22 insertions, 0 deletions
diff --git a/tests/features164/aopconfig/one/A3.java b/tests/features164/aopconfig/one/A3.java new file mode 100644 index 000000000..9339f2044 --- /dev/null +++ b/tests/features164/aopconfig/one/A3.java @@ -0,0 +1,3 @@ +aspect A3 { + before():staticinitialization(*) {} +} diff --git a/tests/features164/aopconfig/one/multi1.xml b/tests/features164/aopconfig/one/multi1.xml new file mode 100644 index 000000000..0aeec1b08 --- /dev/null +++ b/tests/features164/aopconfig/one/multi1.xml @@ -0,0 +1,9 @@ +<aspectj> + <aspects> + <aspect name="A" scope="B"/> + </aspects> + <weaver> + <!-- Do not apply on any aspects --> + <exclude within="A*"/> + </weaver> +</aspectj> diff --git a/tests/features164/aopconfig/one/multi2.xml b/tests/features164/aopconfig/one/multi2.xml new file mode 100644 index 000000000..9c2c39ce3 --- /dev/null +++ b/tests/features164/aopconfig/one/multi2.xml @@ -0,0 +1,5 @@ +<aspectj> + <aspects> + <aspect name="A2" scope="B2"/> + </aspects> +</aspectj> diff --git a/tests/features164/aopconfig/one/multi3.xml b/tests/features164/aopconfig/one/multi3.xml new file mode 100644 index 000000000..18c1513fc --- /dev/null +++ b/tests/features164/aopconfig/one/multi3.xml @@ -0,0 +1,5 @@ +<aspectj> + <aspects> + <aspect name="A3"/> + </aspects> +</aspectj> |