ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kees van Dieren" <>
Subject exec: redirect to property and standard output
Date Thu, 04 Oct 2007 08:09:41 GMT

Is it possible with the exec task to redirect output to both standard output
and a property?

Why do I need this?

We call maven from ant. Maven does not return exit code -1 when it fails. So
afterwards, we check with fail and contains, if it contains [error].
However, this maven process takes about two minutes to run, and it would be
nice to see progress of execution in the console.

Is this possible?

Thanks in advance!

Best regards,

Kees van Dieren
Oranjestraat 23
2983 HL Ridderkerk
Phone: +31 180 41 45 20
Cell: +31 6 30 41 38 41

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message