Re: "Replace" ANT task overwrites read-only files

2010-10-28 Thread Jon Stevens
Sounds like an overcomplicated, brittle and error prone way to develop code. jon On Thu, Oct 28, 2010 at 2:51 AM, Marco Sambin - NeoLogica < marco.sam...@neologica.it> wrote: > Hi. > > I am using a ANT task in my build.xml in order to implement a > kind > of "conditional compilation" in my Net

Re: class BuildTimeoutException extends BuildException

2010-10-28 Thread Jesse Glick
On 10/28/2010 06:17 AM, Steve Loughran wrote: Ant uses getMessage() primarily to extract some text from BuildException to use in a log or other exception. Probably this should be fixed to use getLocalizedMessage(), if only for consistency with Throwable.printStackTrace. -

Re: "Replace" ANT task overwrites read-only files

2010-10-28 Thread Antoine Levy-Lambert
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 - NeoLogic

"Replace" ANT task overwrites read-only files

2010-10-28 Thread Marco Sambin - NeoLogica
Hi. I am using a 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 de

Re: class BuildTimeoutException extends BuildException

2010-10-28 Thread Steve Loughran
On 27/10/10 18:34, Jesse Glick wrote: On 10/27/2010 06:01 AM, Steve Loughran wrote: 4. we leave the error strings alone for fear of [...fear itself?] #4 irritates me, I'd like some details about which subprocess got killed, but if we are searching for the string in Ant's own codebase, then we c