ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Martin" <antu...@gmail.com>
Subject Re: copy files using mapper
Date Sat, 05 Aug 2006 13:04:46 GMT
Hello,

>From what I understand you want to remove DirB\DirC from the target files path.
Would something like the following match your need (not tested) ?

<copy todir="d:\">
<fileset dir="d:\" includes ="*\dirB\dirC\*\*.jsp" />
<regexpmapper from="^(.*)\\dirB\\dirC\\(.*)" to="\1\\\2"/>
</copy>

Patrick

On 8/5/06, satheesh <tsatheeskumar@yahoo.co.uk> wrote:
>
> I Need to copy files from  D:\dirA\dirB\dirC\dirD\*.jsp To
> D:\dirA\dirD\*.jsp,
> I tried with mapper also, I am unable to do this and I can't hard code this
> directory structure because I have many modules like dirA,
>
> Eg . here I need to remove the dirB\dirC
>
> D:\dirA1\dirB\dirC\dirDx\*.jsp  To D:\dirA1\dirDx\*.jsp,
> D:\dirA2\dirB\dirC\dirDy\*.jsp  To D:\dirA2\dirDy\*.jsp,
>
> … can you please give me the solution?
> Rgds
> sathees
>
> --
> View this message in context: http://www.nabble.com/copy-files-using-mapper-tf2054672.html#a5661171
> Sent from the Ant - Users forum at Nabble.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


Mime
View raw message