Howto capture stdout / stderr of an ant-task?

I use gradle to execute an very old ant-plugin (EjbDoclet) . It generates a tremendous amount of output, which I would like to ignore…

Howto capture stdout / stderr of an ant-task? Which doesn’t obey it’s own verbose-switch?

something like

'#> ant generate %2> /ant.err >/dev/null ’

Micha

1 Like