How to manage android with Svn of eclipse

Source: Internet
Author: User

Using SVN to control the version, SVN itself does not identify which data should be transferred or which data should not be transferred, which leads to the upload of some paths (such as expanding the jar path, when someone else downloads the file, the path may not exist for this person at all, and the project compilation may fail.

I just made this mistake. I installed the svn plug-in with eclipse, and uploaded all android projects with a brain. After downloading the plug-in, others could not compile it.

After a variety of Google, I know that the android project cannot be uploaded as follows:

  • Bin directory
  • Gen directory
  • . Classpath File
  • . Project File

To block them in eclipse, perform the following operations:

  1. Click on window-> preferences
  2. Select Team-> ignored Resources
  3. Click on add pattern and enter "bin"
  4. Click on add pattern and enter "target"
  5. Click on add pattern and enter "m2-target"
  6. Click on add pattern and enter "gen"
  7. Click on add pattern and enter ". classpath"
  8. Click on add pattern and enter ". Project"
  9. Click on apply and then OK

In this way, these will be automatically blocked and will not be updated during future submission.

Another problem is that at every compilation, eclipse will upload the items in the src directory to the bin. SVN will also follow in, so that even if the bin is blocked, there is still a problem in SVN. solution:

Menu-project-properties-Java build path-source-xxx/src-excluded, double-click or click Edit on the right side, and add "**/. SVN/** "for eclipse to ignore. SVN directory.

After a long time, I learned how to delete an object through SVN:

First in the local

# Files or folders to be deleted by SVN del

Note that this is an offline operation. At this time, the server is still running. After svn ci, you can delete the server.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.