title: ant groovy task stdout output
body: <p>Inside of my ant script (which is startet with the <code>-q</code> (quiet) cli option) I start a groovy script like that:</p>
  
  <pre><code>&lt;groovy src="${groovy.script.filepath}"&gt;
      &lt;classpath&gt;
          &lt;pathelement location="path/to/groovy/src/"/&gt;
      &lt;/classpath&gt;
      &lt;arg line="-arg 1 -arg 2"/&gt;
  &lt;/groovy&gt;
  </code></pre>
  
  <p>My groovy script looks like this:</p>
  
  <pre><code>//some imports
  
  class MyClass {
      static void main(args) {
          System.out.println("Im not beeing printed!")
          System.err.println("But I am printed, but on stdout!")
          //...
      }
      //...
  }
  </code></pre>
  
  <p>I expected both the outputs to be displayed like when I do <code>&lt;echo level="default"&gt;...&lt;/echo&gt;</code> or <code>&lt;echo level="error"&gt;...&lt;/echo&gt;</code>. However the <code>System.out</code> one is not printed at all and the <code>System.err</code> one is printed on stdout.</p>
  
  <p>Why is that and how can I make groovy print on stdout and stderr like when using ants <code>echo</code> task?</p>