Given: http://developer.android.com/resources/faq/commontasks.html#filelist
I summarized all my findings in a blog post that can be found here: http://www.aydabtudev.com/2011/05/what-goes-into-source-control-android.html
I executed the following commands from within my project folder to get them out of source control:
svn rm --keep-local .classpath
svn rm --keep-local .project
svn rm --keep-local default.properties
svn rm --keep-local proguard.cfg
svn rm --keep-local bin/
svn rm --keep-local gen/
Then I executed the following command to add them to an ignore list:
svn pe svn:ignore .
Add each item above without the associated command like so:
.classpath
.project
bin/
...
I followed that up with a commit and an update to solidify my changes.
svn commit -q -m "Removing files" .
svn update
It would seem the smarter way to do this would be to configure the Ignored Resources under the Eclipse Team preferences.
If you're using SVN, you should selectively add files/directories to your repository.
For example with the following directory structure (quick example from my disk):
res/
src/
build/
.idea/
You do not want the build directory, nor the personal preferences for your IDE (.idea
folder) adding, so you would only issue the command: svn add res src
To (I think) answer your second point, I'd manage everything to do with version control from command line initially, and then let your IDE do it.
My apologies if I'm missing the point of the question.
Here are some basic points:
common-utils.jar
is checked into Subversion that my project now depends upon. Again, use Artifactory and Ant/Ivy or Maven. If you're non-Java, you can use wget
or curl
to fetch your dependent libraries out of Artifactory. Again, don't let the whole Maven thing scare you.src/main/java
and non Java files are under src/main/resources
. The advantage is that it makes it easy to move from project to project, and new developers can quickly find where things are. Plus, it makes your build.xml
files much cleaner. You can use any standard repository layout you want, but by insisting on Maven's standard, you can squelch all complaints. "Hey, I agree with you, but Maven says you put your code under this directory. Sorry, I wish I could help, but my hands are tied"
trunk
, branches
, tags
style and don't be too fancy. I'm not 100% crazy about the layout myself. (I'd rather have a main
under the branches
directory and no trunk
), but you'll simply confuse developers and make support more difficult, and all for very little gain.build.xml
use the description
parameter in target names, and that internal only targets don't use description
. That way, ant -p
works. Also make sure that all built artifacts are under the target
directory (again, Maven's way). It makes it easy to do a clean
if you only have to delete the target
directory. The idea of clean
is to restore your layout to pristine checkout condition. Makes it much easier to use a tool like Jenkins. Which reminds me...If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With