Skip to content

Commit

Permalink
Merge pull request #182 from TobiX/patch-1
Browse files Browse the repository at this point in the history
Fix debug output of plugin class path
  • Loading branch information
keeganwitt authored Dec 5, 2020
2 parents e217393 + 1236b9e commit df5d34e
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,11 @@ public abstract class AbstractGroovyMojo extends AbstractMojo {
protected void logPluginClasspath() {
if (getLog().isDebugEnabled()) {
StringBuilder sb = new StringBuilder();
for (Artifact artifact : pluginArtifacts) {
sb.append(artifact.getFile());
for (int i = 0; i < pluginArtifacts.size(); i++) {
sb.append(pluginArtifacts.get(i).getFile());
if (i < pluginArtifacts.size() - 1) {
sb.append(", ");
}
}
getLog().debug("Plugin classpath:\n" + sb.toString());
}
Expand Down

0 comments on commit df5d34e

Please sign in to comment.