don't fail on missing source dirs
This commit is contained in:
parent
94d6b22137
commit
e82808917c
|
@ -58,9 +58,12 @@ public class LicenseHeadersTask extends DefaultTask {
|
|||
// checks all the java sources (allJava)
|
||||
for (SourceSet set : project.sourceSets) {
|
||||
for (File dir : set.allJava.srcDirs) {
|
||||
// sometimes these dirs don't exist, e.g. site-plugin has no actual java src/main...
|
||||
if (dir.exists()) {
|
||||
ant.fileset(dir: dir)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// BSD 4-clause stuff (is disallowed below)
|
||||
substringMatcher(licenseFamilyCategory: "BSD4 ",
|
||||
|
|
Loading…
Reference in New Issue