ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <>
Subject RE: reverse glob mapper pattern?
Date Mon, 23 Sep 2002 18:33:09 GMT
--- Dominique Devienne <> 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>.



Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!

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

View raw message