You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Cornellious Mann <co...@yahoo.com> on 2001/08/30 22:46:07 UTC
Stripping off part of directory structure
Does anyone know how to strip off part of a directory
structure from a file name while performing a copy? I
know about the flatten feature, except it removes the
entire directory structure.
=====
Regards,
Cornellious Mann
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com
Re: Stripping off part of directory structure
Posted by Erik Hatcher <er...@earthlink.net>.
Give the "regexp" mapper a try, documented at:
http://jakarta.apache.org/ant/manual/CoreTypes/mapper.html
----- Original Message -----
From: "Cornellious Mann" <co...@yahoo.com>
To: <an...@jakarta.apache.org>
Sent: Thursday, August 30, 2001 1:46 PM
Subject: Stripping off part of directory structure
> Does anyone know how to strip off part of a directory
> structure from a file name while performing a copy? I
> know about the flatten feature, except it removes the
> entire directory structure.
>
> =====
> Regards,
> Cornellious Mann
>
> __________________________________________________
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with Yahoo!
Messenger
> http://im.yahoo.com
RE: Stripping off part of directory structure
Posted by Michael Laccetti <mi...@eldan.com>.
Sample:
<filter token="NCade" value="ncade"/>
<move todir="${build.dir}/ncade-web" filtering="true">
<fileset dir="${temp-web.dir}/NCade-web"/>
</move>
Using tokens, you can replace the token with other things. So, if you
search for the same token, and replace it with nothing, you're basically
removing it...
-----Original Message-----
From: Cornellious Mann [mailto:cornermann@yahoo.com]
Sent: Thursday, August 30, 2001 16:46
To: ant-user@jakarta.apache.org
Subject: Stripping off part of directory structure
Does anyone know how to strip off part of a directory
structure from a file name while performing a copy? I
know about the flatten feature, except it removes the
entire directory structure.
=====
Regards,
Cornellious Mann
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo!
Messenger http://im.yahoo.com