ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Ant1.8 copy task gives error "Failed to copy" with "Permission denied"
Date Tue, 18 May 2010 12:30:34 GMT
On 2010-05-18, SHAILJA <shalja.rudra@gmail.com> wrote:

> Stefan Bodewig wrote:

>> Sounds like you are hitting the problem described in the recently opened
>> <https://issues.apache.org/bugzilla/show_bug.cgi?id=49261>

> When the above mentioned bug will be fixed?

Like the bug report says, it is already fixed in trunk and will be fixed
in the next release (after 1.8.1).  The fix may not be what you expect,
though.  The next release will never overwrite read-only files with
<copy> unless you explicitly set a force attribute to make it do so.

For Ant 1.8.0 and 1.8.1 there is a workaround - make <copy> use the
filtering mode (i.e. add a filterset that doesn't change your files at
all) and it will overwrite read-only files just like 1.7.1 did.  This
workaround won't work anymore with the next release.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message