Skip to content

Commit 7d399ba

Browse files
committed
GROOVY-11658: groovyc: log command-line arguments at verbose level
3_0_X backport
1 parent 2af2a57 commit 7d399ba

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

  • subprojects/groovy-ant/src/main/java/org/codehaus/groovy/ant

subprojects/groovy-ant/src/main/java/org/codehaus/groovy/ant/Groovyc.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ private PrintWriter printWriter(File tempFile) throws IOException {
12621262

12631263
private String[] makeCommandLine(List<String> commandLineList) {
12641264
String[] commandLine = commandLineList.toArray(EMPTY_STRING_ARRAY);
1265-
log.info("Compilation arguments:\n" + String.join("\n", commandLine));
1265+
log.verbose("Compilation arguments:\n" + String.join("\n", commandLine)); // GROOVY-11658
12661266
return commandLine;
12671267
}
12681268

@@ -1322,18 +1322,15 @@ private void runCompiler(String[] commandLine) {
13221322
}
13231323
Writer writer = new StringBuilderWriter();
13241324
new ErrorReporter(t, false).write(new PrintWriter(writer));
1325-
String message = writer.toString();
1325+
log.error(writer.toString());
13261326

13271327
taskSuccess = false;
13281328
if (errorProperty != null) {
13291329
getProject().setNewProperty(errorProperty, "true");
13301330
}
13311331

13321332
if (failOnError) {
1333-
log.error(message);
13341333
throw new BuildException("Compilation Failed", t, getLocation());
1335-
} else {
1336-
log.error(message);
13371334
}
13381335
}
13391336
}

0 commit comments

Comments
 (0)