Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Changing directory structure in copy

Changing directory structure in copy

2007-08-07       - By cuillandre frederic
Reply:     1     2     3     4     5  

> I need to copy the following directories:
>
>     ../dir1/db/*
>     ../dir2/db/*
>     ../foo/db/*
>     ../bar/db/*
>
> To:
>
>     dbutil/dir1
>     dbutil/dir2
>     dbutil/foo
>     dbutil/bar
>
> Basically, I want to copy all directories:
>
>     ../*/db
>
> to:
>
>     dbutil/*

why don't you use the copy tag
http://ant.apache.org/manual/CoreTasks/copy.html
or copydir tag
http://ant.apache.org/manual/CoreTasks/copydir.html

>
> I looked at mapper, but it seems to only map file names. Is there a
> way to map directories in Ant without using any "optional" tasks,
> manually listing the directories, or using shell callouts?



©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.