use better variable name for build listener, and change access back to
private for internal method of thirdPartyAudit
This commit is contained in:
parent
5b9bf8e738
commit
44edac0081
|
@ -51,13 +51,13 @@ public class AntTask extends DefaultTask {
|
|||
|
||||
// remove existing loggers, we add our own
|
||||
List<BuildLogger> toRemove = new ArrayList<>();
|
||||
for (BuildListener l : ant.project.getBuildListeners()) {
|
||||
for (BuildListener listener : ant.project.getBuildListeners()) {
|
||||
if (l instanceof BuildLogger) {
|
||||
toRemove.add(l);
|
||||
toRemove.add(listener);
|
||||
}
|
||||
}
|
||||
for (BuildLogger l : toRemove) {
|
||||
ant.project.removeBuildListener(l)
|
||||
for (BuildLogger listener : toRemove) {
|
||||
ant.project.removeBuildListener(listener)
|
||||
}
|
||||
|
||||
final int outputLevel = logger.isDebugEnabled() ? Project.MSG_DEBUG : (logger.isInfoEnabled() ? Project.MSG_INFO : Project.MSG_WARN)
|
||||
|
|
|
@ -167,7 +167,7 @@ public class ThirdPartyAuditTask extends AntTask {
|
|||
/**
|
||||
* check for sheisty classes: if they also exist in the extensions classloader, its jar hell with the jdk!
|
||||
*/
|
||||
protected void checkSheistyClasses(Path root, Set<String> excluded) {
|
||||
private void checkSheistyClasses(Path root, Set<String> excluded) {
|
||||
// system.parent = extensions loader.
|
||||
// note: for jigsaw, this evilness will need modifications (e.g. use jrt filesystem!).
|
||||
// but groovy/gradle needs to work at all first!
|
||||
|
|
Loading…
Reference in New Issue