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