Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 339927 - SVN updates and Eclipse refreshes deletes .svn/entries file
Summary: SVN updates and Eclipse refreshes deletes .svn/entries file
Status: CLOSED DUPLICATE of bug 335247
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-14 13:35 EDT by R. Duval CLA
Modified: 2011-03-15 15:02 EDT (History)
2 users (show)

See Also:


Attachments
Attaching a patch file against WTP 3.0.4 that fixes this issue (4.52 KB, patch)
2011-03-15 14:20 EDT, Todd E. Williams CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description R. Duval CLA 2011-03-14 13:35:44 EDT
Everytime a web project is updated from a SVN repository and it is refreshed on Eclipse the .svn/entries file is deleted from the project root.

Steps to reproduce the issue:

- Create a web project (Maven war project, Dynamic web project)
- Commit it to a SVN repository using a SVN Client
- Make some dummy modifications to the files
- Commit those modifications
- Update the project using the SVN client
- Refresh the web project on Eclipse

The .svn/entries file on web-project root is deleted and project can no longer be synchronized.

There is a workaround for this:

- Open the .project file
- Delete the "org.eclipse.wst.jsdt.core.javascriptValidator" xml node
- Delete the "org.eclipse.wst.jsdt.core.jsNature" xml node

Although I've been using STS I've reproduced this issue in Eclipse 3.6.1 JEE standalone. This bug also affects Linux distributions of Eclipse.

-- Configuration Details --
Product: SpringSource Tool Suite 2.5.2.201102261000-SR1 (com.springsource.sts.ide)
Installed Features:
 org.eclipse.jdt 3.6.2.r362_v20101117-0800-7z8XFW6FLFlmjJcvz03jyeFBLS_F
Comment 1 Konstantin Komissarchik CLA 2011-03-14 14:19:10 EDT
Moving to JSDT based on the following:

> There is a workaround for this:
> 
> - Open the .project file
> - Delete the "org.eclipse.wst.jsdt.core.javascriptValidator" xml node
> - Delete the "org.eclipse.wst.jsdt.core.jsNature" xml node
Comment 2 Todd E. Williams CLA 2011-03-15 14:20:35 EDT
Created attachment 191237 [details]
Attaching a patch file against WTP 3.0.4 that fixes this issue

The patch I'm attaching was done against WTP 3.0.4 so it should still be correct or quite close to addressing this issue here as well.
Comment 3 Derek Lewis CLA 2011-03-15 14:32:53 EDT
This looks like it may be a duplicate of:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=335247
The patches attached to both bugs are virtually identical (one deletes code, the other comments out the same code)
Comment 4 Chris Jaun CLA 2011-03-15 15:02:11 EDT
Yep, Derek, I'm going to mark this as a duplicate of 335247, which has been checked into 3.2.4.

*** This bug has been marked as a duplicate of bug 335247 ***