You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Brian Kuhn <bn...@gmail.com> on 2005/11/16 18:47:14 UTC
uncopy -- custom task supporting mapper
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
Re: uncopy -- custom task supporting mapper
Posted by db...@baybroadband.net.
Puts back the old version of course. With infinite levels of undo, too.
:)
-----Original Message-----
From: "Matt Benson" <gu...@yahoo.com>
Sent: Wednesday, November 16, 2005 2:50 pm
To: "Ant Users List" <us...@ant.apache.org>
Subject: Re: uncopy -- custom task supporting mapper
--- Brian Kuhn <bn...@gmail.com> wrote:
[SNIP]
> I'm currently using the copy task to copy a fileset
> from one directory to
> another.
[SNIP]
> 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>
[SNIP]
Okay... I'll bite. What would <uncopy> DO?
-Matt
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: uncopy -- custom task supporting mapper
Posted by Matt Benson <gu...@yahoo.com>.
--- Brian Kuhn <bn...@gmail.com> wrote:
[SNIP]
> I'm currently using the copy task to copy a fileset
> from one directory to
> another.
[SNIP]
> 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>
[SNIP]
Okay... I'll bite. What would <uncopy> DO?
-Matt
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org