ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dale Anson <>
Subject Re: ANT build file validation
Date Thu, 04 Mar 2004 20:45:43 GMT
Antstructure generates a dtd for the core tasks and some optional tasks. 
  All attributes are marked as IMPLIED in the dtd with one or two 
exceptions. I'm actually in the middle of hand-editing a dtd produced by 
antstructure to turn those IMPLIED's into REQUIRED's as appropriate and 
filling in the defaults. It's tedious as it means reading the docs for 
each task and in some cases the code. I'll post the dtd when I'm done 
with the core tasks.


Antoine Lévy-Lambert wrote:

> ===> have a look at the antstructure task, which can generate a dtd.
> I am not 100% sure whether this dtd contains everything, but it gives a 
> rough idea.
> ===> of course your XML must be well formed (basic)
> Antoine
> Weir, Michael wrote:
>> Is there a way of ensuring that an ant build.xml file is valid? 
>> I have modified our build with many options that make life easier and 
>> builds
>> faster for developers, but the many different ways that the build now
>> executes means that sometimes errors such as improperly-typed 
>> properties and
>> target names sometimes slip in.
>> I expect that there are many things that can be done dynamically in 
>> ant that
>> makes it hard to ensure that every conceivable build.xml file is 
>> valid, but
>> many problems could be spotted by a quick pass through the file.
>> Thanks for any help with this.
>> Michael Weir . Transform Research Inc. . 613.238.1363 x.114
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message