ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Kuhn <bnk...@gmail.com>
Subject uncopy -- custom task supporting mapper
Date Wed, 16 Nov 2005 17:47:14 GMT
Hi all,

I'm currently using the copy task to copy a fileset from one directory to
another.

<copy todir="${dir-a}/com/mycompany/appl/layer">
<fileset dir="${dir-b}/LAYER/com/mycompany/appl/layer"/>
</copy>

I'd like to somehow reverse (undo) this operation in my clean target. My
first thought is something like this:

<uncopy>
<mapper from="${dir-b}/LAYER/com/mycompany/appl/layer/*"
to="${dir-a}/com/mycompany/appl/layer/*"/>
<fileset dir="${dir-b}/LAYER/com/mycompany/appl/layer"/>
</uncopy>

I've never created a custom task that supports mapper. Does anyone know of a
resource that explains this? What about an alternate solution?

Thanks,
Brian

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message