“Project->Properties->Java Build Path”,右侧的面板中的”Source”选项卡,在Excluded中加入”**/.svn/**”,就可以将所有的svn文件排除在编译路径中了。
eclipse打包排除svn文件
在eclipse中Export web项目中,往往会将项目中版本控制文件一起打进了war包,如下设置可以过滤:
project properties > Resource > Resource Filters > Add... > Exclude All > Files and Folders > All children (recursive) > Name matches *.svn > OK.
参考:
http://stackoverflow.com/questions/1294901/ignore-svn-files-when-exporting-a-war-file-from-eclipse
在eclipse中Export web项目中,往往会将项目中版本控制文件一起打进了war包,如下设置可以过滤:
project properties > Resource > Resource Filters > Add... > Exclude All > Files and Folders > All children (recursive) > Name matches *.svn > OK.
参考:
http://stackoverflow.com/questions/1294901/ignore-svn-files-when-exporting-a-war-file-from-eclipse