jax
jax

Reputation: 38653

What files should I ignore in an Android Project on SVN

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?

Upvotes: 40

Views: 12553

Answers (4)

Revolutionair
Revolutionair

Reputation: 758

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/*

Upvotes: 2

Mashiah
Mashiah

Reputation: 111

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.

Upvotes: 6

Fedor
Fedor

Reputation: 43422

Just ignore gen and bin directories.

Upvotes: 46

naikus
naikus

Reputation: 24472

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

Upvotes: 0

Related Questions