40

I have added the 'gen' folder to svn:ignore, are there any others I should be ignoring?

Update:

There are some I am unsure about

.classpath
.project
The .settings folder

And also, to ignore a folder I am just typing gen into the ignore list in subclipse, is this correct? How would it know if gen is a folder or file?

Nikhil
  • 16,194
  • 20
  • 64
  • 81
jax
  • 37,735
  • 57
  • 182
  • 278

4 Answers4

46

Just ignore gen and bin directories.

Fedor
  • 43,261
  • 10
  • 79
  • 89
  • would I be correct in simply adding the words 'bin' and 'gen' on different lines in subclipse? Do I need any slashes? I can't find any information on this online! – jax Jun 30 '10 at 08:43
  • Not sure I don't use subclipse. Maybe this can help http://stackoverflow.com/questions/1066809/subclipse-svnignore/1069412#1069412 – Fedor Jun 30 '10 at 15:29
  • looks like this is the case, just a single name on each line – jax Jun 30 '10 at 15:46
  • 3
    As an aside for those using Eclipse with Subversive, install the optional **JDT Ignore Extensions**. If you've already installed Subversive w/o these, just go to `Help >> Install New Software`. Pick `Indigo` or your version from the `Work With` choices, and then type **JDT Ignore** for the filter text and install. Now you can just right click on the folders to ignore (`bin` and `gen`) and pick `add to svn:ignore`. – Peter Ajtai Oct 25 '11 at 00:53
  • I think `local.properties` should also be ignored. – fikr4n Sep 20 '13 at 03:09
6

Not quite. If you want to easily import and export the project just make sure that all file in the gen and bin folders and exclude, but keep the folder themselves this will help import the project. if you don't do it, you will have ot make them yourself every time you import the project. but you should also exclude: .classpath .project The .settings folder

Summary you need to exclude: *.classpath* .project *The .settings folder* *the content of bin * *the content of gen *

Note: If you want to import the project you need to import from existing code - you don't have the project file so it is not a project you import... Just to remembered.

Mashiah
  • 111
  • 1
  • 6
2

I see no answer has been given on the question about ignoring folders. The best way to go is /*folderName. If you want to keep the folder but ignore contents as Mashiah suggested, that would be /*folderName/*

For example, to ignore the contents of the gen folder:

*/gen/*

Revolutionair
  • 760
  • 6
  • 19
0

Probably the R.java and other files generated from your .aidl interfaces (if they are already not in your 'gen' directory

naikus
  • 24,302
  • 4
  • 42
  • 43