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

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

问题描述

我使用的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> for ant files

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

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