From a1867b05ba6443d32abc4049c26b92fc226d6f78 Mon Sep 17 00:00:00 2001 From: Alexander Kriegisch Date: Sat, 20 Mar 2021 18:37:22 +0700 Subject: [PATCH] Remove module 'run-all-junit-tests' from root POM -> speed up the build This module must be a relic from a test runner module once existing during the Ant build era, but transferred and kept alive in the Maven build. Actually, it almost doubles build time by running virtually all tests in all modules again when doing 'mvn test' from the project root. For now I only removed the module from the root POM, leaving behind comments there, in the module POM and in the now @Deprecated class RunTheseBeforeYouCommitTests. Signed-off-by: Alexander Kriegisch --- build/build.xml | 193 +++++++++--------- installer/pom.xml | 8 - pom.xml | 8 +- run-all-junit-tests/pom.xml | 15 +- .../java/RunTheseBeforeYouCommitTests.java | 3 + tests/harness/SystemPropertiesTest.java | 2 +- 6 files changed, 119 insertions(+), 110 deletions(-) diff --git a/build/build.xml b/build/build.xml index 013f32610..9c763cb3f 100644 --- a/build/build.xml +++ b/build/build.xml @@ -20,7 +20,7 @@ - + @@ -38,11 +38,11 @@ - + - + - + @@ -66,7 +66,7 @@ version="${build.version}" versionSourceFile="${aspectj.modules.dir}/bridge/src/org/aspectj/bridge/Version.java" versionTagFile="${aj.temp.dir}/versionUptodate"/> - + @@ -87,21 +87,21 @@ - + - + - + - + @@ -117,40 +117,40 @@ - + - + - - + - - + + + failonerror="true"/> @@ -159,11 +159,11 @@ distDir="${aj.dist.dir}" jarDir="${aj.jar.dir}" trimTesting="${trim.testing}" - buildConfig="${build.config}" + buildConfig="${build.config}" version="${build.version.long}" verbose="${build.verbose}" assembleall="${assemble}" - failonerror="true"/> + failonerror="true"/> @@ -189,7 +189,7 @@ - + @@ -197,11 +197,11 @@ - + - + - + @@ -226,16 +226,18 @@ - - + + - + - @@ -353,13 +356,13 @@ - + - + @@ -369,7 +372,7 @@ - + @@ -379,7 +382,7 @@ -To use testing client jar in tests, +To use testing client jar in tests, mv ../aj-build/jars/testing-client-all.jar ../lib/tests/testing-client.jar @@ -391,23 +394,23 @@ To use testing client jar in tests, - + - + - + - + @@ -423,12 +426,12 @@ To use testing client jar in tests, - + - + @@ -451,7 +454,7 @@ To use testing client jar in tests, /> - + @@ -497,12 +500,12 @@ To use testing client jar in tests, + description="create the Eclipse distribution plugins"> - + - + @@ -564,7 +567,7 @@ To use testing client jar in tests, - + @@ -644,7 +647,7 @@ To use testing client jar in tests, - + @@ -721,28 +724,28 @@ To use testing client jar in tests, --> - + - - + + - - - - - + + + + + - + - + @@ -752,45 +755,45 @@ To use testing client jar in tests, - + - - + + - + - + - - + + - + - + - - - - + + + + @@ -857,7 +860,7 @@ ant -propertyfile XXX publishtomaven - + @@ -889,7 +892,7 @@ ant -propertyfile XXX publishtomaven - + @@ -938,13 +941,13 @@ ant -propertyfile XXX publishtomaven - + - @@ -957,15 +960,15 @@ ant -propertyfile XXX publishtomaven - - + + - + - @@ -979,10 +982,10 @@ ant -propertyfile XXX publishtomaven - - + + - + diff --git a/installer/pom.xml b/installer/pom.xml index b3cf10005..970851574 100644 --- a/installer/pom.xml +++ b/installer/pom.xml @@ -14,14 +14,6 @@ pom AspectJ Installer - - - org.aspectj - run-all-junit-tests - ${project.version} - - - diff --git a/pom.xml b/pom.xml index 16b3f2ba1..c323cd1c8 100644 --- a/pom.xml +++ b/pom.xml @@ -37,9 +37,15 @@ testing-drivers tests build - run-all-junit-tests docs + + + aspectjrt aspectjweaver diff --git a/run-all-junit-tests/pom.xml b/run-all-junit-tests/pom.xml index 97347e3eb..b55f3b273 100644 --- a/run-all-junit-tests/pom.xml +++ b/run-all-junit-tests/pom.xml @@ -9,6 +9,11 @@ 1.9.7.BUILD-SNAPSHOT + run-all-junit-tests jar run-all-junit-tests @@ -270,11 +275,11 @@ - diff --git a/run-all-junit-tests/src/test/java/RunTheseBeforeYouCommitTests.java b/run-all-junit-tests/src/test/java/RunTheseBeforeYouCommitTests.java index 4515959c9..6a55f133d 100644 --- a/run-all-junit-tests/src/test/java/RunTheseBeforeYouCommitTests.java +++ b/run-all-junit-tests/src/test/java/RunTheseBeforeYouCommitTests.java @@ -30,8 +30,11 @@ import junit.framework.Test; import junit.framework.TestSuite; /** + * TODO: Remove this class along with the whole module. Run 'mvn test' at the project root instead. + * * @author Andy Clement */ +@Deprecated public class RunTheseBeforeYouCommitTests { public static Test suite() { diff --git a/tests/harness/SystemPropertiesTest.java b/tests/harness/SystemPropertiesTest.java index d02985f88..e489d4f5a 100644 --- a/tests/harness/SystemPropertiesTest.java +++ b/tests/harness/SystemPropertiesTest.java @@ -3,7 +3,7 @@ public class SystemPropertiesTest { public static void main(String[] args) { boolean pass = Boolean.getBoolean("PASS"); if (!pass) { - throw new Error("failed to get Boolean \\\"PASS\\\""); + throw new Error("failed to get Boolean \"PASS\""); } String value = System.getProperty("name", null); if (!"value".equals(value)) { -- 2.39.5