diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2023-08-22 07:49:36 +0700 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2023-08-22 07:49:36 +0700 |
commit | 41849751a83203a89d8cc982951887ee2ffec9c6 (patch) | |
tree | e27e01760ffe936f542fa9dd98242fa32cb7c20a /org.aspectj.ajdt.core | |
parent | d2c35707aeb1f0c950bffb2ff6c88ef449642ec8 (diff) | |
download | aspectj-41849751a83203a89d8cc982951887ee2ffec9c6.tar.gz aspectj-41849751a83203a89d8cc982951887ee2ffec9c6.zip |
Put ASM on classpath for Ajc in tests
This enables compiled source code to use ASM. This way, it is possible
to bootstrap tests needing specially prepared class files by
1. compiling an ASM-enabled byte code generator class,
2. running the generator, writing out class files,
3. using the generated class files in subsequent tests.
Until now, such classes always had to be checked into the ASM directly
or inside JARs. Now, this is no longer necessary.
The next commit will be the first example.
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r-- | org.aspectj.ajdt.core/src/test/java/org/aspectj/tools/ajc/Ajc.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/org.aspectj.ajdt.core/src/test/java/org/aspectj/tools/ajc/Ajc.java b/org.aspectj.ajdt.core/src/test/java/org/aspectj/tools/ajc/Ajc.java index a256f6d90..7f4ae0109 100644 --- a/org.aspectj.ajdt.core/src/test/java/org/aspectj/tools/ajc/Ajc.java +++ b/org.aspectj.ajdt.core/src/test/java/org/aspectj/tools/ajc/Ajc.java @@ -38,6 +38,7 @@ import org.aspectj.util.FileUtil; import static java.io.File.pathSeparator; import static java.io.File.separator; +import static org.aspectj.tools.ajc.AjcTestCase.CLASSPATH_ASM; import static org.aspectj.tools.ajc.AjcTestCase.CLASSPATH_JUNIT; /** @@ -72,6 +73,7 @@ public class Ajc { + outputFolder("runtime") + outputFolder("bcel-builder") + pathSeparator + CLASSPATH_JUNIT + + pathSeparator + CLASSPATH_ASM + outputFolder("bridge") + outputFolder("loadtime") + outputFolder("weaver") |