From 7aa6cfeed1b51b7290a059de6a2f34009274e6f0 Mon Sep 17 00:00:00 2001 From: wisberg Date: Thu, 3 Aug 2006 15:51:04 +0000 Subject: Bug 151991 add modules ajdoc, loadtime, loadtime5, weaver5 to license check --- build/testsrc/org/aspectj/build/BuildModuleTests.java | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'build/testsrc/org/aspectj') diff --git a/build/testsrc/org/aspectj/build/BuildModuleTests.java b/build/testsrc/org/aspectj/build/BuildModuleTests.java index 30b41899d..bfc6b58cc 100644 --- a/build/testsrc/org/aspectj/build/BuildModuleTests.java +++ b/build/testsrc/org/aspectj/build/BuildModuleTests.java @@ -63,7 +63,7 @@ public class BuildModuleTests extends TestCase { } final static List SOURCE_NAMES = Collections.unmodifiableList( - Arrays.asList(new String[]{"src", "testsrc", "java5-src", "aspectj-src"})); + Arrays.asList(new String[]{"src", "testsrc", "java5-src", "java5-testsrc", "aspectj-src"})); /** * @param moduleDir @@ -144,10 +144,27 @@ public class BuildModuleTests extends TestCase { } public void testLicense_weaver() { String module = "weaver"; + // skip (testdata) packages fluffy, reflect checkSourceDirectory(new File(Util.path(new String[] {"..", module, "src"})), module); checkSourceDirectory(new File(Util.path(new String[] {"..", module, "testsrc", "org"})), module); } + public void testLicense_ajdoc() { + checkLicense("ajdoc"); + } + + public void testLicense_loadtime() { + checkLicense("loadtime"); + } + + public void testLicense_loadtime5() { + checkLicense("loadtime5"); + } + + public void testLicense_weaver5() { + checkLicense("weaver5"); + } + void checkLicense(String module) { File moduleDir = new File(Util.path("..", module)); File[] srcDirs = findSourceRoots(moduleDir); -- cgit v1.2.3