Name

antstructure

Synopsis

Creates an XML Document Type Definition (DTD) for Ant buildfiles. This uses Java reflection to determine allowable attributes and content for all tasks. Since the underlying Ant task API does not indicate which attributes are required, the DTD marks all attributes as #IMPLIED. [45]

Attributes

output (all, File, Y)

The name of the DTD file to generate.

Content

None.

Example Usage

Create project.dtd in the current directory:

<target name="createdtd">
  <antstructure output="project.dtd"/>
</target>

[45] In DTDs, #IMPLIED means optional.

Get Ant: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.