1 | <html>
|
---|
2 |
|
---|
3 | <head>
|
---|
4 | <meta http-equiv="Content-Language" content="en-us">
|
---|
5 | <title>AntStructure Task</title>
|
---|
6 | <link rel="stylesheet" type="text/css" href="../stylesheets/antmanual.css">
|
---|
7 | </head>
|
---|
8 |
|
---|
9 | <body>
|
---|
10 |
|
---|
11 | <h2><a name="antstructure">AntStructure</a></h2>
|
---|
12 | <h3>Description</h3>
|
---|
13 |
|
---|
14 | <p>Generates an DTD for Ant buildfiles which contains information
|
---|
15 | about all tasks currently known to Ant.</p>
|
---|
16 |
|
---|
17 | <p>Actually the DTD will not be a real DTD for buildfiles since Ant's
|
---|
18 | usage of XML cannot be captured with a DTD. Several elements in Ant
|
---|
19 | can have different attribute lists depending on the element that
|
---|
20 | contains them. "fail" for example can be <a
|
---|
21 | href="fail.html">the task</a> or the nested child element of the <a
|
---|
22 | href="../OptionalTasks/sound.html">sound</a> task. Don't consider the
|
---|
23 | generated DTD something to rely upon.</p>
|
---|
24 |
|
---|
25 | <p>Also note that the DTD generated by this task is incomplete, you can
|
---|
26 | always add XML entities using <a
|
---|
27 | href="taskdef.html"><code><taskdef></code></a> or <a
|
---|
28 | href="typedef.html"><code><typedef></code></a>. See <a
|
---|
29 | href="http://www.sdv.fr/pages/casa/html/ant-dtd.en.html"
|
---|
30 | target="_top">here</a> for a way to get around this problem.</p>
|
---|
31 | <p>This task doesn't know about required attributes, all will be
|
---|
32 | listed as <code>#IMPLIED</code>.</p>
|
---|
33 | <h3>Parameters</h3>
|
---|
34 | <table border="1" cellpadding="2" cellspacing="0">
|
---|
35 | <tr>
|
---|
36 | <td valign="top"><b>Attribute</b></td>
|
---|
37 | <td valign="top"><b>Description</b></td>
|
---|
38 | <td align="center" valign="top"><b>Required</b></td>
|
---|
39 | </tr>
|
---|
40 | <tr>
|
---|
41 | <td valign="top">output</td>
|
---|
42 | <td valign="top">file to write the DTD to.</td>
|
---|
43 | <td valign="top" align="center">Yes</td>
|
---|
44 | </tr>
|
---|
45 | </table>
|
---|
46 | <h3>Examples</h3>
|
---|
47 | <blockquote><pre>
|
---|
48 | <antstructure output="project.dtd"/>
|
---|
49 | </pre></blockquote>
|
---|
50 | <hr><p align="center">Copyright © 2000-2002,2004 The Apache Software Foundation. All rights
|
---|
51 | Reserved.</p>
|
---|
52 |
|
---|
53 | </body>
|
---|
54 | </html>
|
---|
55 |
|
---|