From 41849751a83203a89d8cc982951887ee2ffec9c6 Mon Sep 17 00:00:00 2001 From: Alexander Kriegisch Date: Tue, 22 Aug 2023 07:49:36 +0700 Subject: 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 --- org.aspectj.ajdt.core/src/test/java/org/aspectj/tools/ajc/Ajc.java | 2 ++ 1 file changed, 2 insertions(+) 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") -- cgit v1.2.3