ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject RE: reverse glob mapper pattern?
Date Mon, 23 Sep 2002 18:33:09 GMT
--- Dominique Devienne <DDevienne@lgc.com> wrote:
> You'll also see that the <present> selector selects the wrong files,

No, it selects it says it does -- namely, it selects only those files that
have an equivalent, as specified. It doesn't say it'll return *both* the
files that have an equivalent *and* the equivalent file(s) as well.

You could, theoretically, do it with two <fileset>'s (one to do an
equivalent for sample.* -> *, and one to do it the other way around) --
only when you're doing delete's, by the time you get to evaluating the
second <fileset>, the equivalents have already been deleted, so the second
<fileset> comes up empty, which is why you need to evaluate them
beforehand, and get the files they return into a property, then pass the
value of that property to <delete>. And of course, since <delete> won't
take more than one file in the 'file' attribute, you need to pass the list
to 'includes' instead, which is why you need to lop off the leading path
up to the directory specified in 'dir', which is why you need to go
through <pathconvert>.

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message