如何告诉Eclipse在Ant的build.xml忽略错误? [英] How to tell Eclipse to ignore errors in an Ant build.xml?

查看:174
本文介绍了如何告诉Eclipse在Ant的build.xml忽略错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是使用Maven构建一个Eclipse项目,我使用Eclipse内部m2eclipse插件为它的Maven的支持。

I have an Eclipse project which is built using Maven, and I'm using the m2eclipse plugin inside Eclipse for it's Maven support.

但这个项目还包含了一个的build.xml 这不用于实际构建的项目,但只为脚本功能,作为对项目开发商的实用程序 - 它是不是在建设或包装的产品(只是帮助自动执行某些任务,一边开发商经常要调用的一侧)使用。

However this project also contains a build.xml which is not used for actually building the project, but just for scripting capabilities as a utility for developers on the project - it is not used in building or packaging the product (just helping to automate some side tasks the developers often have to invoke on the side).

每当这个文件是在Eclipse编辑器中打开时,Eclipse会注意到它认为是在build.xml缺少一些声明的问题,并开始为项目显示错误(Problems视图)用红色一起 X 图标/项目标记,以表明有生成错误。这甚至不是真正的问题与Eclipse的认为是present因为它不能够导入其他所有相关文件中的的build.xml ,只是一些问题这个的build.xml 正在使用。有没有建错误与项目,只需在Eclipse的东西(在它的无穷智慧)是能够解析有关错误的一个的build.xml 作辅助用途。

Whenever this file is opened in an editor in Eclipse, Eclipse notices what it thinks is a problem with some missing declarations in the build.xml and begins to display errors for the project (in the Problems view) along with a red X icon/marker for the project to show that there are build errors. These aren't even true problems with the build.xml, just some problems that Eclipse thinks are present because it is not able to import all of the other dependent files this build.xml is using. There are no "build" errors with the project, just errors in what Eclipse (in it's infinite wisdom) is able to parse about a build.xml used for auxiliary purposes.

有没有办法告诉Eclipse忽略一个build.xml或在某一特定项目中忽略蚂蚁警告?我是否需要删除项目属性的 Java的生成器建筑工地标签?

Is there any way to tell Eclipse to ignore a build.xml or ignore Ant warnings in a particular project? Do I need to remove the Java Builder from the Builders tab of the project properties?

推荐答案

窗口 - > preferences - >蚂蚁 - >编辑 - >问题(标签)结果
选中忽略所有构建文件问题

Window-> Preferences -> Ant -> Editor -> Problems (Tab)
check 'Ignore all buildfile problems'

这篇关于如何告诉Eclipse在Ant的build.xml忽略错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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