ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tharp, Joshua L, SOLGV" <>
Subject RE: Testing for a path reference
Date Wed, 23 Apr 2003 15:36:52 GMT
>> 5) Can a build file reference a DTD? That way I could specify the 
>> entity
>> definitions in one place and only have to specify the DTD instead of
>> having to list all of the entities in each of my build files.

>Look at the <antstructure> task.  It will generate a DTD for you.  This

>is problematic though, in that you'll have to edit the DTD and add any 
>custom tasks you begin using later.

>Unfortunately you are banging up against the rough edges of Ant here, 
>and the library build file technique can only go so far and must work 
>within the constraints of Ant's rules of course.

Does ANT actually validate the XML on the way in? I mean if I have a DTD
that simply defines the entities I want to include, will it try to
validate the rest of the XML as well? I'm not looking for a
comprehensive DTD, just a way to store a bunch of common entity


View raw message