Precautions for using tortoisesvn and eclipse

Source: Internet
Author: User
Tags tortoisesvn

1. directories that do not require Version Control: bin. The Android project created in geneclipse contains two directories that do not need or cannot be version controlled: Bin and gen. Here, Bin is the path for storing compiled binary files, and gen is the directory for storing the source files required by Android (R. for details about what Java stores, refer to the android SDK. A file defines a class, and the variables in the class correspond to the resource ID of the program ). These two folders are cleared every time they are built, and Tortoise
SVN performs version control by storing a hidden folder. in this way, the version control information is lost when only one build is used. Therefore, version control is not allowed for these two directories. Of course, they are all generated and do not require version control.
2. By default, eclipse will copy the content in the src directory to the bin folder by modifying the setting of build path. If you do not perform version control on the bin according to the first step, but perform Version Control on other necessary directories such as SRC, you will find one more directory in the bin. SVN folder, but unlike other folders with the same name, this is not hidden. This is because it is copied from the src directory. There are two problems. One is this. SVN folder, through the tortoise SVN command, you can modify the version control of SRC in the bin (because it is copied, a simple understanding can be considered as a pointer to copy another thing ), of course, this operation can avoid misoperation. However, another problem is that eclipse will try to process the content in the. SVN folder during compilation, which will cause many inexplicable errors and cause the compilation failure.
Therefore, we should avoid copying. SVN folder, which needs to be modified in the build path setting of the project. In the source tag, find the excluded SRC file to edit and add **/. SVN/, which can be ignored. SVN folder. To solve the problem above. However, this cannot be set globally. It is not human-friendly to do this for every new project.


If the content in. SVN is incorrect but cannot be solved through the method mentioned above, you can delete the project in eclipse (do not delete it from the hard disk ......), Then select File-> Import to re-import the items on the hard disk. The annoying error disappears.
Extracted from http://blog.sina.com.cn/s/blog_6231b8420100h4ws.html
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.