ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Denis N. Antonioli <anto...@ifi.unizh.ch>
Subject Re: DTD?
Date Thu, 12 Sep 2002 05:23:19 GMT

On Mercredi, sep 11, 2002, at 08:40 Europe/Zurich, Stefan Bodewig wrote:

> On Tue, 10 Sep 2002, Guy McArthur <guym@guymcarthur.com> wrote:
>> Is there a DTD for the build file syntax?
>
> <http://jakarta.apache.org/ant/faq.html#dtd>
>
>> Just thinking it would be nifty to validate the build.xml within an
>> editor....
>
> But won't work, even with the DTD created by the example above.
>
> <javac fork="${javac.fork}" ...> is invalid as the parser will not be
> aware of Ant properties.

It won't work because it is outdated, at least it provides a basis
for further editing.

A DTD can't check the attribute's type/value, as in this example,
and it can't check that all the required attributes are present in
a valid combination, but it will at least help check the syntax,
and help editors with code completion.

	dna

-- 
Never underestimate the bandwidth of a station wagon full of magnetic
tape.
   -- Andrew S. Tanenbaum


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message