ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SHAILJA <shalja.ru...@gmail.com>
Subject Re: Ant1.8 copy task gives error "Failed to copy" with "Permission denied"
Date Tue, 18 May 2010 08:46:15 GMT

Hi Stefan,

>>
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?


Stefan Bodewig wrote:
> 
> On 2010-05-07, SHAILJA <shalja.rudra@gmail.com> wrote:
> 
>> I tried to debug my problem with small example. It seems something has
>> changed in "copy" target with ant1.8.0. We change permission of
>> destination
>> file after copy. With ant-1.7.1 copy target copied the source file if
>> source
>> file is newer than destination file but with ant-1.8.0 copy target
>> failed.
>> My small build.xml is
>> ==============
>> /u/kumari/ant> less less build.xml
>> <project>
>> <target name="install_scripts">
>>  <copy file="${basedir}/myfile.txt" tofile="/u/kumari/myfile.txt"/>
>>  <chmod file="/u/kumari/myfile.txt" perm="555"/>
>> </target>
>>  </project>
>> ================
> 
> Sounds like you are hitting the problem described in the recently opened
> <https://issues.apache.org/bugzilla/show_bug.cgi?id=49261>
> 
> I haven't found the time to fully look into this but think Ant should
> not overwrite read-only files by default - so this part would be a fix
> rather than a regression.  It probably should do so if the overwrite
> attribute has been set to true, but the bug report says ant doesn't do
> so either.
> 
> Stefan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Ant1.8-copy-task-gives-error-%22Failed-to-copy%22-with-%22Permission-denied%22-tp28179282p28593129.html
Sent from the Ant - Dev mailing list archive at Nabble.com.


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


Mime
View raw message