From 50c4883bf47070933f4431c47c1fc5a8779e2477 Mon Sep 17 00:00:00 2001 From: wisberg Date: Wed, 1 Oct 2003 05:25:04 +0000 Subject: [PATCH] tests for fixes for bugs disclosed by fixes for 40807 --- taskdefs/testdata/aspectsrc/SampleAspect.java | 7 + taskdefs/testdata/aspectsrc/aspects.lst | 1 + taskdefs/testdata/test-build.xml | 125 +++++++++++++++++- 3 files changed, 126 insertions(+), 7 deletions(-) create mode 100644 taskdefs/testdata/aspectsrc/SampleAspect.java create mode 100644 taskdefs/testdata/aspectsrc/aspects.lst diff --git a/taskdefs/testdata/aspectsrc/SampleAspect.java b/taskdefs/testdata/aspectsrc/SampleAspect.java new file mode 100644 index 000000000..6ed9aab50 --- /dev/null +++ b/taskdefs/testdata/aspectsrc/SampleAspect.java @@ -0,0 +1,7 @@ + +public aspect SampleAspect { + before () : staticinitialization(!SampleAspect) { + System.out.println("initializing class " + + thisJoinPointStaticPart.getSignature().getDeclaringType()); + } +} \ No newline at end of file diff --git a/taskdefs/testdata/aspectsrc/aspects.lst b/taskdefs/testdata/aspectsrc/aspects.lst new file mode 100644 index 000000000..41210a48d --- /dev/null +++ b/taskdefs/testdata/aspectsrc/aspects.lst @@ -0,0 +1 @@ +SampleAspect.java diff --git a/taskdefs/testdata/test-build.xml b/taskdefs/testdata/test-build.xml index cb66c09b9..20f8ed3fc 100644 --- a/taskdefs/testdata/test-build.xml +++ b/taskdefs/testdata/test-build.xml @@ -1,9 +1,120 @@ - - - - - - - + + + + + This script tests the Ajc11CompilerAdapter by compiling + with Javac alone and then with Javac set up to use ajc. + This must be run with aspectjtools.jar on the Ant classpath, + so put it in the ant lib directory. + + It mainly tests that both work when the destination directory + is not specified, and that the ajc compile picks up the extra + arguments. Much more could be tested. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.39.5