Disable DTD warning for Ant scripts in Eclipse?
Solution 1:
The simplest is to supply a minimal DTD to shut it up.
<!DOCTYPE project>
for ant files
Solution 2:
Being with Brian on the "anal-retentive yearning for a warning-free Problems tab", I finally decided to get serious about solving this. Thanks to Martin's leading, it looks like a done deal.
However, instead of Project -> Properties, it's solvable globally via Windows -> Preferences.
- Select the Validation category in the left pane.
- Find the Validator named "XML Validator" (in the right pane) and click its ellipses (...) button.
- In the following dialogue, select the "Exclude Group" and click "Add Rule...".
- On the first page of the New Filter Rule Wizard, select the Content Type option and click Next>.
- Finally, on the Content Type drop down, select "Ant Buildfile".
- Click Finish and a couple of OKs and that should take care of existing and future Ant Build file validation warnings.
Solution 3:
Even though this thread is a little older, somebody might find this interesting:
http://www.cs.hs-rm.de/~knauf/KomponentenArchitekturen2008/jsfunit/index.html
Go to Project Properties -> Validation and follow the screen shots on that page. Should be easy even if you don't speak German. ;-)
This solution worked perfectly for me. Cheers!
Solution 4:
You can delete it, and restore it to avoid the warning. It is a bug, obviously.