summaryrefslogtreecommitdiffstats
path: root/build/testsrc/org/aspectj
diff options
context:
space:
mode:
authorwisberg <wisberg>2006-08-03 15:51:04 +0000
committerwisberg <wisberg>2006-08-03 15:51:04 +0000
commit7aa6cfeed1b51b7290a059de6a2f34009274e6f0 (patch)
tree5369632cf697cdc521e96d3da2a49cb28549e414 /build/testsrc/org/aspectj
parent73b71e3834f1384ce77bacf3844222aab27c0951 (diff)
downloadaspectj-7aa6cfeed1b51b7290a059de6a2f34009274e6f0.tar.gz
aspectj-7aa6cfeed1b51b7290a059de6a2f34009274e6f0.zip
Bug 151991 add modules ajdoc, loadtime, loadtime5, weaver5 to license check
Diffstat (limited to 'build/testsrc/org/aspectj')
-rw-r--r--build/testsrc/org/aspectj/build/BuildModuleTests.java19
1 files changed, 18 insertions, 1 deletions
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);