File tree Expand file tree Collapse file tree
subprojects/groovy-ant/src/main/java/org/codehaus/groovy/ant Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments