--- Dominique Devienne <[EMAIL PROTECTED]> 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 ===== ([EMAIL PROTECTED]) __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
