Community
Participate
Working Groups
I'm trying to build SDK and I see that after the (failed) build "git status" reports: Untracked files: (use "git add <file>..." to include in what will be committed) bundles/org.eclipse.jdt.doc.isv/index/ bundles/org.eclipse.jdt.doc.user/index/ bundles/org.eclipse.platform.doc.isv/index/ bundles/org.eclipse.platform.doc.isv/samples/org.eclipse.compare.examples.xml/ bundles/org.eclipse.platform.doc.isv/samples/org.eclipse.compare.examples/ bundles/org.eclipse.platform.doc.isv/samples/org.eclipse.swt.examples.launcher/ bundles/org.eclipse.platform.doc.isv/samples/org.eclipse.swt.examples.ole.win32/ bundles/org.eclipse.platform.doc.isv/samples/org.eclipse.swt.examples.views/ bundles/org.eclipse.platform.doc.isv/samples/org.eclipse.swt.examples/ bundles/org.eclipse.platform.doc.isv/samples/org.eclipse.team.examples.filesystem/ bundles/org.eclipse.platform.doc.isv/samples/org.eclipse.ui.examples.fieldassist/ bundles/org.eclipse.platform.doc.isv/samples/org.eclipse.ui.examples.javaeditor/ bundles/org.eclipse.platform.doc.isv/samples/org.eclipse.ui.examples.multipageeditor/ bundles/org.eclipse.platform.doc.isv/samples/org.eclipse.ui.examples.propertysheet/ bundles/org.eclipse.platform.doc.isv/samples/org.eclipse.ui.examples.readmetool/ bundles/org.eclipse.platform.doc.isv/samples/org.eclipse.ui.examples.undo/ Ideally this should not happen, build should not create "untracked" files - they either should be deleted if they are temporary artifacts, or ignored. I will post a patch with modified .gitignore file in a moment.
New Gerrit change created: https://git.eclipse.org/r/78263
Adding them to .gitignore helps in the sense it makes it easier to clean them with git clean -fxd (or, something like that) BUT, the ideal fix is that we would not change the source tree at all. That if we create something during the build, that we would create it only in the /target directory. Then Tycho itself could clean it up, and makes it realistic that a Tycho build could be "resumed" after an error. This is probably a dup of bug 420078. I will leave it to others if they want the "quick and easy" fix of adding to .gitignore, or to wait until a better fix is available.
To add to what David said - if files in the source tree (aka outside of target/) are added in .gitignore there should also be a configuration that maven-clean-plugin is configured to clean these files in clean stage. Although I also prefer the proper fix to move the build to target/.
Mark as duplicate *** This bug has been marked as a duplicate of bug 420078 ***