From: acolyer Date: Tue, 8 Jun 2004 14:00:21 +0000 (+0000) Subject: change picked up from head X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=051525f64e6ef075393a0d2690ae4ace943073e4;p=aspectj.git change picked up from head --- diff --git a/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/BcweaverJarMaker.java b/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/BcweaverJarMaker.java index 98c9ea984..40e81eeda 100644 --- a/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/BcweaverJarMaker.java +++ b/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/BcweaverJarMaker.java @@ -231,6 +231,30 @@ public class BcweaverJarMaker { args.add(AjdtAjcTests.TESTDATA_PATH + "/src1/LTWAspect.aj"); CommandTestCase.runCompiler(args, CommandTestCase.NO_ERRORS); + /* + * Declare warning advice + */ + args = new ArrayList(); + args.add("-classpath"); + args.add("../lib/test/aspectjrt.jar;../lib/test/testing-client.jar;../weaver/testdata/ltw-classes.jar" + + File.pathSeparator + System.getProperty("aspectjrt.path")); + args.add("-outjar"); + args.add("../weaver/testdata/ltw-dwaspects.jar"); + args.add(AjdtAjcTests.TESTDATA_PATH + "/src1/LTWDeclareWarning.aj"); + CommandTestCase.runCompiler(args, CommandTestCase.NO_ERRORS); + + /* + * Declare error advice + */ + args = new ArrayList(); + args.add("-classpath"); + args.add("../lib/test/aspectjrt.jar;../lib/test/testing-client.jar;../weaver/testdata/ltw-classes.jar" + + File.pathSeparator + System.getProperty("aspectjrt.path")); + args.add("-outjar"); + args.add("../weaver/testdata/ltw-deaspects.jar"); + args.add(AjdtAjcTests.TESTDATA_PATH + "/src1/LTWDeclareError.aj"); + CommandTestCase.runCompiler(args, CommandTestCase.NO_ERRORS); + /* * Around closure advice */