DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=34633>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=34633 ------- Additional Comments From [EMAIL PROTECTED] 2007-12-13 03:29 ------- I can now confirm that this a serious Java bug. I discovered this by doing the following: I downloaded the ant source and I discovered that the original file is copied to a temp file and then that temp file is renamed to the original file. So in short, the original file is copied, edited and then overriden. So I decided to do some experimenting. I moved my source code from 'My Documents' directory which is located under the Document and Settings directory and moved it into c:\Project. Now the replaceregexp task works. Apparently Java doesnt know to handle files like this: C:\Documents and Settings\User\My documents\Projects\MyApp\projects\dao\src\conf\hibernate.properties I tried the following: if (!new File("C:\\Documents and Settings\\User\\My documents\\Projects\\MyApp\\projects\\dao\\src\\conf\\hibernate.properties").delete()) System.out.println( "Could not delete" ); else System.out.println( "Could delete" ); As output I get the message 'Could delete' and the file is deleted. This makes me beleive that there is something totally messed up in Java. Deleteing a file in one instance doesnt work but manually creating a File object pointing to that file and then deleting it will work. This isnt a Ant issue but a Java issue. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]