source: release-kits/lirk3/bin/ant-installer/web/manual/manual/CoreTasks/echoxml.html@ 14982

Last change on this file since 14982 was 14982, checked in by oranfry, 16 years ago

initial import of LiRK3

File size: 2.1 KB
Line 
1<!--
2 Licensed to the Apache Software Foundation (ASF) under one or more
3 contributor license agreements. See the NOTICE file distributed with
4 this work for additional information regarding copyright ownership.
5 The ASF licenses this file to You under the Apache License, Version 2.0
6 (the "License"); you may not use this file except in compliance with
7 the License. You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16-->
17<html>
18
19<head>
20<meta http-equiv="Content-Language" content="en-us">
21<link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
22<title>EchoXML Task</title>
23</head>
24
25<body>
26
27<h2>EchoXML</h2>
28<h3>Description</h3>
29<p>Echo nested XML to the console or a file. <b>Since Ant 1.7</b></p>
30<h3>Parameters</h3>
31<table border="1" cellpadding="2" cellspacing="0">
32 <tr>
33 <td valign="top"><b>Attribute</b></td>
34 <td valign="top"><b>Description</b></td>
35 <td align="center" valign="top"><b>Required</b></td>
36 </tr>
37 <tr>
38 <td valign="top">file</td>
39 <td valign="top">The file to receive the XML. If omitted nested
40 XML will be echoed to the log.</td>
41 <td valign="top" align="center">No</td>
42 </tr>
43 <tr>
44 <td valign="top">append</td>
45 <td valign="top">Whether to append <code>file</code>, if specified.</td>
46 <td valign="top" align="center">No</td>
47 </tr>
48</table>
49<h3>Parameters specified as nested elements</h3>
50Nested XML content is required.
51
52<h3>Examples</h3>
53<pre>&lt;echoxml file=&quot;subbuild.xml&quot;&gt;
54 &lt;project default=&quot;foo&quot;&gt;
55 &lt;target name=&quot;foo&quot;&gt;
56 &lt;echo&gt;foo&lt;/echo&gt;
57 &lt;/target&gt;
58 &lt;/project&gt;
59&lt;/echoxml&gt;
60</pre>
61<p>Creates an Ant buildfile, <code>subbuild.xml</code>.</p>
62
63</body>
64</html>
65
Note: See TracBrowser for help on using the repository browser.