ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Need help using exec to do "ls -rt1 | tail -1"
Date Mon, 07 Apr 2003 07:57:24 GMT
On Fri, 4 Apr 2003, Matt Reason <matt.reason@movielink.com> wrote:

> The exec task seems to hate the fact that one of my arguments is a
> pipe.

I won't repeat that this is due to the fact that pipe's are
interpreted by the shell 8-)

> Does anyone have a workaround?

Use <exec>'s output attribute to write the result of ls to a temporary
file and read this file into a property using <loadfile> and a nested
TailFilter.

Stefan

Mime
View raw message