从Eclipse导出WAR文件时,忽略SVN文件? [英] Ignore SVN files when exporting a WAR file from Eclipse?

查看:217
本文介绍了从Eclipse导出WAR文件时,忽略SVN文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Eclipse中有一个动态Web项目。我可以通过右键单击项目并选择导出> WAR文件将其打包到WAR中。这样就可以按照预期的方式创建WAR文件。



问题是Eclipse将项目中的所有.svn文件夹都添加到WAR文件中。



有没有办法告诉Eclipse忽略WAR导出过程中的.svn文件夹?甚至更好,告诉它忽略与某些给定正则表达式匹配的所有文件或文件夹?

解决方案

输入项目属性>资源>资源过滤器>添加...>排除所有>文件和文件夹>所有子项(递归)>名称匹配* .svn>确定。



所有.svn文件和文件夹将被忽略,包括导出WAR文件时。


I have a Dynamic Web Project in Eclipse. I can pack it to a WAR by right-clicking the project and choosing Export > WAR File. This creates the WAR file as expected and it works.

The problem is that Eclipse includes all the .svn folders of the project into the WAR file.

Is there a way to tell Eclipse to ignore .svn folders in the WAR exporting process? Or even better, tell it to ignore all files or folders that match some given regular expression?

解决方案

Enter the project properties > Resource > Resource Filters > Add... > Exclude All > Files and Folders > All children (recursive) > Name matches *.svn > OK.

All .svn files and folders will be ignored, including when you export WAR files.

这篇关于从Eclipse导出WAR文件时,忽略SVN文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆