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.

Bug 105802 - re-generated code shown as "locally deleted"
Summary: re-generated code shown as "locally deleted"
Status: RESOLVED WORKSFORME
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-06 00:45 UTC by wqtnetbeans
Modified: 2009-12-01 01:20 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wqtnetbeans 2007-06-06 00:45:33 UTC
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
Comment 1 Tomas Stupka 2007-06-06 09:08:28 UTC
> 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.
Comment 2 wqtnetbeans 2007-06-06 15:06:26 UTC
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".
Comment 3 wqtnetbeans 2007-06-06 15:40:21 UTC
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.

  
Comment 4 Ondrej Vrabec 2009-12-01 01:20:36 UTC
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.