ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <>
Subject Re: pointer on making <copy> fail on file not found
Date Wed, 26 Jun 2002 02:57:04 GMT
--- Michael Slass <> wrote:
> I'd like to add the capability to make a copy task fail if either
> 1) an explicitly named source file in any of the nested filesets,
>    mentioned either in an includes attribute, or a nested include tag
>    does not exist.

For explicitly named files, run an <available> on them, and <fail> if the
property's not set. (If running 1.5, <fail unless="propname".../>.)

> 2) Any of the wildcard entries specified in the above ways matches
>    nothing.

Define a <fileset>, <pathconvert> it to a property, and <fail> if the
property's not set -- ie., the <fileset> is empty (for 1.5Beta3 -- for
earlier versions, you'd need to include a <condition> that tests if the
property is equal to "").



Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup

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

View raw message