ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Deibler <mdeib...@nocpulse.com>
Subject Re: CopyDir: Request for additional parameter
Date Thu, 24 Aug 2000 01:50:59 GMT
Question:  What happens to collisions?  What file wins?  The last one
copied?  And how do you know if there was a collision?

Mike


Jeremy Mawson wrote:
> 
> Currently if you use copydir task in this fashion:
> 
> <copydir
>     src="${SRC_DIR}"
>     dest="${DEST_DIR}"
>     includes="**/html/" />
> 
> All files in the HTML directories are copied with their relative paths.
> Fair enough.
> 
> What I would really like to see is an additional option (a y/n param) to
> ascertain whether the files under the html directories should be copied to
> ${DEST_DIR} precisely (ie not into subdirectories of ${DEST_DIR}).
> 
> Perhaps something like:
> 
> <copydir src="x" dest="y" relative="yes" /> would copy
> 
>   x
>   |
>   +--001
>      |
>      +--002
>      |  |
>      |  +--file002
>      |
>      +--file001
> 
> to
> 
>   y
>   |
>   +--001
>      |
>      +--002
>      |  |
>      |  +--file002
>      |
>      +--file001
> 
> but <copydir src="x" dest="y" relative="no" /> would copy
> 
>   x
>   |
>   +--001
>      |
>      +--002
>      |  |
>      |  +--file002
>      |
>      +--file001
> 
> to
> 
>   y
>   |
>   +--file001
>   +--file002
> 
> What's the thinking out there?
> 
> Jem

-- 
Mike Deibler

NocPulse, Inc.
1293 Mountain View-Alviso Road, Suite D
Sunnyvale, CA  94089

Mime
View raw message