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

查看:157
本文介绍了在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天全站免登陆