This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build 200410171800 1) Have a file locked by other program (e.g. with noshare attribute) 2) Try to overwrite this file by 'copyfiles' ant task (used for copying libraries to WEB-INF/lib on build) 3) ERROR: There should be an error message that the file couldn't be rewritten. Now it doesn't report any problem.
This is not a bug. The <copy> task does not report any errors either. When we switch to copy task in 4.1 (hopefully) you will not get any error. The failonerror parameter of copy task is true by default so this is not considered to be an error. (Our copyfiles actually delegates to copy internally; I also created a simple ant file and tested... see for yourself if you do not believe:-) If you still believe there should be some warning message shown to the user file and enhancement and I will try to figure our how to do it in ant. <project name="foo" default="test"> <target name="test"> <taskdef classpath="E:\\nb_all\\nbbuild\\netbeans\\ide4\\ant\\extra\\copyfiles.jar" classname="org.netbeans.modules.web.project.ant.CopyFiles" name="copyfiles"/> <!-- <copyfiles files="userdir.zip" todir="foo"/>--> <copy file="userdir.zip" todir="foo"/> </target> </project>