有没有办法告诉 Eclipse 不要在 JAR 或 WAR 中包含指定的文件、目录或模式?
You can specify includes and excludes by opening the Project Properties (alt-enter) then opening Java Build Path and the Source tab. Against each source location there is a little plus sign, click on that then select Included or Excluded then select the Edit... button.
源路径截图http://help.eclipse.org/ganymede/topic/org.eclipse.jdt.doc.user/gettingStarted/images/qs-WorkingWithExistingLayout26.png http://help.eclipse.org/ganymede/topic/org.eclipse.jdt.doc.user/gettingStarted/images/qs-WorkingWithExistingLayout26.png
然后,您可以为要包含/排除的文件指定多个模式。这些文件不会被处理到输出目录。模式如下Ant 的通配符模式 http://ant.apache.org/manual/dirtasks.html因此您可以非常精细地控制要包含的内容。
(source: eclipse.org http://archive.eclipse.org/eclipse/downloads/drops/R-3.0-200406251208/images/org.eclipse.jdt.ui/exclude.gif)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)