Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 531721

Summary: Eclipse deletes .gitignore files
Product: [Eclipse Project] JDT Reporter: Alexander Veit <Alexander.Veit>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: stephan.herrmann
Version: 4.7.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: stalebug

Description Alexander Veit CLA 2018-02-27 03:56:30 EST
.gitignore files are located in various subdirectories of /target. These subdirectories normally contain packages with compiled classes.

It happens quite often that the .gitignore files are being deleted.

It may be worth noting that the SCM used in Eclipse is Subversion/Subclipse.

This bug is similar to https://bugs.eclipse.org/bugs/show_bug.cgi?id=458230.
Comment 1 Stephan Herrmann CLA 2018-02-27 05:09:15 EST
I'm not sure who could possible fix this.

For one, which action exactly removes the .gitignore files? I frequently observe that "mvn clean" does this, but I never saw this happening due to Eclipse build activity.

Secondly, JDT is - by design - agnostic against any SCM. Perhaps it requires EGit to be installed to participate in building and preventing .gitignore from being deleted?
Comment 2 Eclipse Genie CLA 2020-05-11 12:35:31 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 3 Alexander Veit CLA 2020-05-12 02:24:49 EDT
This bug still exists in Eclipse 2019-12.
Comment 4 Stephan Herrmann CLA 2020-05-12 04:39:48 EDT
(In reply to Alexander Veit from comment #3)
> This bug still exists in Eclipse 2019-12.

We don't have steps for reproduction and more fingers are pointing towards Subclipse (which is not an Eclipse.org project) than towards JDT. So please don't expect any action here.