Hi Antoine,

thanks for your feedback.
Yes, I would like to open a bug report for this <replace> issue (Ant should
NOT perform replace on read-only files by default, while the current version
does overwrite the read-only files).

Should I open the bug directly (by registering on
https://issues.apache.org/bugzilla/, then filing the bug report), or should
we follow an alternative way?
Thanks in advance and best regards,

Marco


-----Original Message-----
From: Antoine Levy-Lambert [mailto:anto...@gmx.de] 
Sent: giovedì 28 ottobre 2010 15:42
To: Ant Developers List
Subject: Re: "Replace" ANT task overwrites read-only files

Hello Marco,

this has been done in SVN (yet unreleased) but not for the replace task.

the bug report  https://issues.apache.org/bugzilla/show_bug.cgi?id=49261 
mentioned mainly the copy task.

Do you want to open a bug report ?

Regards,

Antoine

On 10/28/2010 5:51 AM, Marco Sambin - NeoLogica wrote:
> Hi.
>
> I am using a<replace>  ANT task in my build.xml in order to implement a
kind
> of "conditional compilation" in my Netbeans Java project.
>
> Replacing works as expected, except for one point: it is able to replace
> strings also on read-only files (which then become read-write after
> replace). This is not a desired behavior, in my opinion (at least, not by
> default), and it causes issues with our source version control system.
>
>
>
> I think<replace>  should FAIL on read-only files by default. You may want
to
> consider adding a "force" attribute, such as for the<copy>  task, in order
> to force replace on read-only files.
>
>
>
> Any comments on this would be greatly appreciated.
>
>
>
> Regards,
>
>
>
> Marco Sambin
>
>




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

Reply via email to