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.
In my project, one of the source folders contains some code generated by a tool external to the IDE (AndroMDA). The generated code is committed to SVN. The problem is every time I run the external tool locally (delete and re-generate the code), all the Java files in the generated folder show as "locally deleted". But in fact, the files are re-generated after the deletion (They are physically on the hard disk as I can see them). They maybe different than the SVN repo version (and I really need to see the difference), but I can not diff them as they are marked as locally deleted. Is this a bug, or is there some way I can "refresh" the folder such that I can diff and see the changes I made to the files? Thanks! Qingtian
> Is this a bug, or is there some way I can "refresh" changing files outside from netbeans is an unsupported scenario, but however - invoking "show changes" from the context menu or the refresh button in the versioning view should work.
changing files outside from netbeans is an unsupported scenario -Ok, I see. Will file an enhancement request.... however invoking "show changes" from the context menu or the refresh button in the versioning view should work. -No, it doesn't. The only way to get NB to recognize those re-generated files again, is to "revert local delete".
Changing issue to be an enhancement such that changed files from outside the IDE is supported by the SVN plugin of netBeans. The rationale is that file changes from outside the IDE happens often. Generated code like the case here is one (other examples include Axis WS binding; generated DAO classes by Hibernate tools....); another example would be, sometimes you'd want to add a bunch of jars or image files in a batch - you could try and add them within the IDE, but that's much more inconvenient than drag and drop outside of the IDE. BTW, the Eclipse SVN plugin (subclipse) has no problem of working with changes outside of Eclipse.
See bug 157373 - when you delete a file externally and re-create the file, then after you switch back to IDE, the file shouldn't be removed and should remain up-to-date/modified. If it still doesn't work (e.g. when you switch to IDE right after the file is deleted and before the file is re-created) and the file still gets deleted, you can try the following command-line switch: "-J-Dorg.netbeans.modules.subversion.deleteMissingFiles=false" This will prevent IDE from running 'svn delete' on missing files. For details see bug 153828.