]> source.dussan.org Git - aspectj.git/commitdiff
various polish to previously mavenized projects to support newer ones
authorAndy Clement <aclement@pivotal.io>
Thu, 31 Jan 2019 20:01:53 +0000 (12:01 -0800)
committerAndy Clement <aclement@pivotal.io>
Thu, 31 Jan 2019 20:01:53 +0000 (12:01 -0800)
testing/src/test/java/org/aspectj/testing/AntSpec.java
testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCase.java

index ceba08b29b8ce67a5f329661b6cd34d1d12aa904..bd0301d281eea5f5190a3ac906fa2dd055d62b10 100644 (file)
@@ -46,12 +46,24 @@ import org.aspectj.tools.ajc.AjcTestCase;
  */
 public class AntSpec implements ITestStep {
 
+       
+       public static final String outputFolders(String... modules) {
+               StringBuilder s = new StringBuilder();
+               for (String module: modules) {
+                       s.append(File.pathSeparator + ".." +File.separator + module + File.separator + "target" + File.separator + "classes");
+               }
+               return s.toString();
+       }
+       
+       
        // ALSO SEE AJC
-       private final static String DEFAULT_LTW_CLASSPATH_ENTRIES = ".." + File.separator + "asm/bin" + File.pathSeparator + ".."
-                       + File.separator + "bridge/bin" + File.pathSeparator + ".." + File.separator + "loadtime/bin" + File.pathSeparator
-                       + ".." + File.separator + "loadtime5/bin" + File.pathSeparator + ".." + File.separator + "weaver/bin"
-                       + File.pathSeparator + ".." + File.separator + "org.aspectj.matcher/bin" + File.pathSeparator + ".." + File.separator
-                       + "lib/bcel/bcel.jar" + File.pathSeparator + ".." + File.separator + "lib/bcel/bcel-verifier.jar";;
+       private final static String DEFAULT_LTW_CLASSPATH_ENTRIES =
+                       outputFolders("asm", "bridge", "loadtime", "weaver", "org.aspectj.matcher", "bcel-builder");
+//     private final static String DEFAULT_LTW_CLASSPATH_ENTRIES = ".." + File.separator + "asm/bin" + File.pathSeparator + ".."
+//                     + File.separator + "bridge/bin" + File.pathSeparator + ".." + File.separator + "loadtime/bin" + File.pathSeparator
+//                     + ".." + File.separator + "loadtime5/bin" + File.pathSeparator + ".." + File.separator + "weaver/bin"
+//                     + File.pathSeparator + ".." + File.separator + "org.aspectj.matcher/bin" + File.pathSeparator + ".." + File.separator
+//                     + "lib/bcel/bcel.jar" + File.pathSeparator + ".." + File.separator + "lib/bcel/bcel-verifier.jar";;
 
        private boolean m_verbose = false;
        private AjcTest m_ajcTest;
index 13bbf844edaa4e4b7b2bff38cd059cb05d80e604..ff448647b5c4de9280a4d1a5b8551dcd323cda06 100644 (file)
@@ -73,7 +73,7 @@ public abstract class XMLBasedAjcTestCase extends AjcTestCase {
         * 
         * <pre>
         * public static Test suite() {
-        *      return XMLBasedAjcTestCase.loadSuite(MyTestCaseClass.class);
+        *       return XMLBasedAjcTestCase.loadSuite(MyTestCaseClass.class);
         * }
         * </pre>
         * 
@@ -84,21 +84,11 @@ public abstract class XMLBasedAjcTestCase extends AjcTestCase {
                TestSuite suite = new TestSuite(testCaseClass.getName());
                suite.addTestSuite(testCaseClass);
                TestSetup wrapper = new TestSetup(suite) {
-                       /*
-                        * (non-Javadoc)
-                        * 
-                        * @see junit.extensions.TestSetup#setUp()
-                        */
                        protected void setUp() throws Exception {
                                super.setUp();
                                suiteLoaded = false;
                        }
 
-                       /*
-                        * (non-Javadoc)
-                        * 
-                        * @see junit.extensions.TestSetup#tearDown()
-                        */
                        protected void tearDown() throws Exception {
                                super.tearDown();
                                suiteLoaded = false;