zoukankan      html  css  js  c++  java
  • Android开发中的svn问题

    使用Eclipse开发android,我并没有将bin目录加入到svn控制中.但每次编译,都会将src目录下的.svn和类包拷贝过去.所以在svn上总是有问题.

    上网搜索了一下,原来是Eclipse在编译的时候输出路径的问题:

    Eclipse结合SVN进行版本控制,进行开发时,即使在TortoiseSVN中设置bin目录设置为ignore目录,但是Eclipse还是会将代码目录中的.svn拷贝到bin,造成界面上显示bin发生变化,并且有可能影响项目编译。解决方法见:

    打开Eclipse中的Project->Properties->JavaBuildPath菜单,在右侧面板中的"Source"选项卡,在Excluded中加入"**/.svn/**"。

    不需要版本控制的目录bin, gen。  

    还有一个方法:

    By default Eclipse compiles .java from source folders to .class in the 
    bin folder and copies all other files. 
    You can configure a filter for which files not to copy in Window => 
    Preferences, Java => Compiler => Building => Output Folder. 

    Then again the better way I think is to install the Subclipse plugin 
    for integrating Subversion in Eclipse. 
    As far as I know that should prevent such copying of the .svn folder 

    as well.  

    subeclipse:

    http://subclipse.tigris.org/ 

    安装: 

    http://subclipse.tigris.org/update 

    (Help->Software Updates->Find and Install-> Search for new features to install ->New Remote Site。URL中就输入http://subclipse.tigris.org/update

    再,如果android工程出现莫名其妙的R的问题等,可以删除import android.R,然后执行Project中的Clean.

  • 相关阅读:
    网络编程
    GUI编程
    Java数组
    Day24
    Day23
    Day22
    Day21
    Day20
    Day19
    Day18
  • 原文地址:https://www.cnblogs.com/GarfieldTom/p/2081152.html
Copyright © 2011-2022 走看看