Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should .class files be put under version control?

I ran into a few synchronization issues where I had to checkout my project a few times over.

A number of us are working on an android project and need to retain the proper package structure, resource files, etc... I think that all of these should be in the repository but the class/build files should be excluded, right?

Is it good practice for my team to ignore committing their .class files?

like image 339
Atticus Avatar asked Nov 23 '11 02:11

Atticus


1 Answers

Yes, .class files produced from .java files in the same project should be ignored.

Usually you want to have a separate build folder for all your .class files to go in, and then put that whole folder in .svnignore.

See: Which files do you commit and/or omit from your source control?

like image 82
wrschneider Avatar answered Sep 24 '22 05:09

wrschneider