]> source.dussan.org Git - aspectj.git/commitdiff
change picked up from head
authoracolyer <acolyer>
Tue, 8 Jun 2004 14:00:21 +0000 (14:00 +0000)
committeracolyer <acolyer>
Tue, 8 Jun 2004 14:00:21 +0000 (14:00 +0000)
org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/BcweaverJarMaker.java

index 98c9ea984d7083dc258e09f00a07e6d6b2414f32..40e81eedac998e9ae6560997d948b65362c99f97 100644 (file)
@@ -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
                 */