在 Eclipse 中禁用 Ant 脚本的 DTD 警告? [英] Disable DTD warning for Ant scripts in Eclipse?

查看:27
本文介绍了在 Eclipse 中禁用 Ant 脚本的 DTD 警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Eclipse Ganymede.一切正常,但我对一个没有警告的问题选项卡有着强烈的渴望.现在它(正确地)抱怨我的 Ant 脚本:没有语法约束(DTD 或 XML 模式)) 检测到文档."有没有办法只为这些文件关闭它?理想情况下,如果我的其他受架构约束的文件缺少架构声明,我希望它仍然警告我.

I'm using Eclipse Ganymede. Everything works fine, but I have an anal-retentive yearning for a warning-free Problems tab. Right now it (correctly) complains about my Ant scripts: "No grammar constraints (DTD or XML schema) detected for the document." Is there any way to turn that off for just those files? Ideally I'd like it to still warn me if my other schema-constrained files were missing the schema declarations.

推荐答案

最简单的方法是提供一个最小的 DTD 来关闭它.

The simplest is to supply a minimal DTD to shut it up.

<!DOCTYPE project>

用于蚂蚁文件

这篇关于在 Eclipse 中禁用 Ant 脚本的 DTD 警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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