Eclipse导出war包时去掉SVN文件

来源:互联网 发布:欧冠决赛数据 编辑:程序博客网 时间:2024/05/16 10:29
使用Eclipse编译文件后,classes文件中总是有.svn的文件夹,这些文件没有什么用,而且影响build的速度

“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打包排除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

0 0