Diane kindly helped me to construct a foreach statement to tame m4
(http://www.mail-archive.com/ant-user@;jakarta.apache.org/msg21085.html).
<exec executable="m4" output="${macro_proc.out}">
<arg value="-P"/>
<arg value="${base.macro_proc.in}.m4"/>
</exec>
That works fine if no error is present in the exec's input files.
If anything goes wrong within exec, I get only
[exec] Result: 1
or if it is trying to get input (from stdin?) and apparently hangs,
after Ctrl-C, it get
[exec] Result: 66048
but not the useful stderr output such as
NONE:0: m4: ERROR: EOF in string
...
any idea how I can convince ant (at least in the <Result: 1> case) to
share with the user what the exec sent to stderr?
Thanks Ralf
P.S. The man page
http://jakarta.apache.org/ant/manual/CoreTasks/exec.html doesn't say
anything.
--
To unsubscribe, e-mail: <mailto:ant-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org>