ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <>
Subject Re: HTML validation
Date Tue, 07 Jan 2003 09:56:37 GMT

On Tuesday, January 7, 2003, at 04:26  AM, Eric Jain wrote:
>> <>
>> <>
>> <>
> Thanks. What I was looking for was a task to do validation in the 
> sense of
> checking the syntax for conformance to the official W3C standards 
> (something
> like, doesn't seem to be supported directly 
> by any
> of those tools.

I created a Lucene <index> task to parse HTML using JTidy and index the 
contents.  I ran it on Ant's documentation and Javadocs many times and 
corrected a lot of the errors it kicked out (and there were a lot of 

It would be pretty easy to take what I've done and make it into a 
general purpose <htmlvalidate> task and even have it fail the build if 
errors are detected if thats what you want.

Have a look at the lucene-sandbox repository for contributions/ant:

The HtmlDocument class is the one you're looking for.


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message