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

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

问题描述

我在 Eclipse 中有一个动态 Web 项目.我可以通过右键单击项目并选择导出">WAR 文件"将其打包为 WAR.这会按预期创建 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.

问题是 Eclipse 将项目的所有 .svn 文件夹都包含在 WAR 文件中.

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

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

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?

推荐答案

进入项目属性 > Resource > Resource Filters > Add... > Exclude All > Files and Folders > All children (recursive) > Name matching *.svn> 好的.

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

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

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

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

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