ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <>
Subject RE: Loadfile not loading file
Date Wed, 18 Aug 2004 20:45:15 GMT
--- "Dick, Brian E." <> wrote:

> Thanks for <for>. It is definitely better than
> <foreach>.
> I can't wrap the for with a single <record
> action="start"> and <record action="stop">
> Pair. I'm running an <exec> in the <for> body that
> doesn't set a return code on failure. I need to scan
> the scan the output of each iteration of the <exec>
> to check for an ERROR string.

hmmm... what about:

<for param="f">
  <path refid="yourpath">
    <delete file="errorfile" />
    <exec executable="yourexe">
      <redirector output="errorfile"
            <contains value="ERROR" />
    <fail message="ERROR with @{f}">
        <available file="errorfile" type="f" />


Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message