| 1 |
|
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<meta http-equiv="Content-Language" content="en-us"> |
| 5 |
<title>Foreach |
| 6 |
Task</title> |
| 7 |
</head> |
| 8 |
|
| 9 |
<body bgcolor="#ffffff" text="#000000" link="#525D76" |
| 10 |
alink="#525D76" vlink="#525D76"> |
| 11 |
|
| 12 |
<table border="0" width="100%" cellspacing="4"> |
| 13 |
|
| 14 |
<!-- PAGE HEADER --> |
| 15 |
<tr> |
| 16 |
<td> |
| 17 |
<table border="0" width="100%"><tr> |
| 18 |
<td valign="bottom"> |
| 19 |
<font size="+3" face="arial,helvetica,sanserif"><strong>Foreach |
| 20 |
Task</strong></font> |
| 21 |
<br><font face="arial,helvetica,sanserif">Call a target foreach entry in a set of parameters based on a fileset.</font> |
| 22 |
</td> |
| 23 |
<td> |
| 24 |
<!-- PROJECT LOGO --> |
| 25 |
<a href="http://ant.apache.org/"> |
| 26 |
<img src="../../images/ant_logo_large.gif" align="right" alt="Apache Ant" border="0"/> |
| 27 |
</a> |
| 28 |
</td> |
| 29 |
</tr></table> |
| 30 |
</td> |
| 31 |
</tr> |
| 32 |
|
| 33 |
<!-- START RIGHT SIDE MAIN BODY --> |
| 34 |
<tr> |
| 35 |
<td valign="top" align="left"> |
| 36 |
|
| 37 |
<!-- Applying task/long-description --> |
| 38 |
<!-- Start Description --> |
| 39 |
<table border="0" cellspacing="0" cellpadding="2" width="100%"> |
| 40 |
<tr><td> </td></tr> |
| 41 |
|
| 42 |
<tr><td bgcolor="#525D76"> |
| 43 |
<font color="#ffffff" face="arial,helvetica.sanserif"> |
| 44 |
<a name="description"> |
| 45 |
<strong>Description</strong></a></font> |
| 46 |
</td></tr> |
| 47 |
|
| 48 |
<tr><td><blockquote> |
| 49 |
Call a target foreach entry in a set of parameters based on a fileset. <p> <i>For Axis development; there is no support or stability associated with this task</i> <pre> <target name="target1"> <foreach target="target2"> <param name="param1"> <fileset refid="fset1"/> </param> <param name="param2"> <item value="jar" /> <item value="zip" /> </param> </foreach> </target> <target name="target2"> <echo message="prop is ${param1}.${param2}" /> </target> </pre> <br> Really this just a wrapper around "AntCall" <br> Added a "type" attribute that works precisely like its equivalent in <code>ExecuteOn</code>. It allows the user to specify whether directories, files, or both directories and files from the filesets are included as entries in the parameter set. |
| 50 |
</blockquote></td></tr> |
| 51 |
|
| 52 |
</table> |
| 53 |
<!-- End Description --> |
| 54 |
|
| 55 |
<!-- Ignore --> |
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
<!-- Start Attributes --> |
| 60 |
<table border="0" cellspacing="0" cellpadding="2" width="100%"> |
| 61 |
<tr><td> </td></tr> |
| 62 |
<tr><td bgcolor="#525D76"> |
| 63 |
<font color="#ffffff" face="arial,helvetica.sanserif"> |
| 64 |
<a name="attributes"> |
| 65 |
<strong>Parameters</strong></a></font> |
| 66 |
</td></tr> |
| 67 |
<tr><td><blockquote> |
| 68 |
<table> |
| 69 |
<tr> |
| 70 |
<td bgcolor="#cccccc" valign="top" align="left"> |
| 71 |
<font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Attribute</b></font> |
| 72 |
</td> |
| 73 |
<td bgcolor="#cccccc" valign="top" align="left"> |
| 74 |
<font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Description</b></font> |
| 75 |
</td> |
| 76 |
<td bgcolor="#cccccc" valign="top" align="left"> |
| 77 |
<font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Type</b></font> |
| 78 |
</td> |
| 79 |
<td bgcolor="#cccccc" valign="top" align="left"> |
| 80 |
<font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Requirement</b></font> |
| 81 |
</td> |
| 82 |
</tr> |
| 83 |
<!-- Attribute Group --> |
| 84 |
|
| 85 |
<!-- Attribute Group --> |
| 86 |
<!-- Attribute --> |
| 87 |
<tr> |
| 88 |
<td bgcolor="#eeeeee" valign="top" align="left"> |
| 89 |
<font color="#000000" size="-1" face="arial,helvetica,sanserif">fork</font> |
| 90 |
</td> |
| 91 |
<td bgcolor="#eeeeee" valign="top" align="left"> |
| 92 |
<font color="#000000" size="-1" face="arial,helvetica,sanserif">If true, forks the ant invocation.</font> |
| 93 |
</td> |
| 94 |
<td bgcolor="#eeeeee" valign="top" align="left"> |
| 95 |
<font color="#000000" size="-1" face="arial,helvetica,sanserif">boolean</font> |
| 96 |
</td> |
| 97 |
<td bgcolor="#eeeeee" valign="top" align="left" rowspan="5"> |
| 98 |
<font color="#000000" size="-1" face="arial,helvetica,sanserif">Optional</font> |
| 99 |
</td> |
| 100 |
</tr> |
| 101 |
<!-- Attribute --> |
| 102 |
<tr> |
| 103 |
<td bgcolor="#eeeeee" valign="top" align="left"> |
| 104 |
<font color="#000000" size="-1" face="arial,helvetica,sanserif">inheritall</font> |
| 105 |
</td> |
| 106 |
<td bgcolor="#eeeeee" valign="top" align="left"> |
| 107 |
<font color="#000000" size="-1" face="arial,helvetica,sanserif">If true, pass all properties to the new Ant project. Defaults to true.</font> |
| 108 |
</td> |
| 109 |
<td bgcolor="#eeeeee" valign="top" align="left"> |
| 110 |
<font color="#000000" size="-1" face="arial,helvetica,sanserif">boolean</font> |
| 111 |
</td> |
| 112 |
</tr> |
| 113 |
<!-- Attribute --> |
| 114 |
<tr> |
| 115 |
<td bgcolor="#eeeeee" valign="top" align="left"> |
| 116 |
<font color="#000000" size="-1" face="arial,helvetica,sanserif">inheritrefs</font> |
| 117 |
</td> |
| 118 |
<td bgcolor="#eeeeee" valign="top" align="left"> |
| 119 |
<font color="#000000" size="-1" face="arial,helvetica,sanserif">If true, pass all references to the new Ant project. Defaults to false</font> |
| 120 |
</td> |
| 121 |
<td bgcolor="#eeeeee" valign="top" align="left"> |
| 122 |
<font color="#000000" size="-1" face="arial,helvetica,sanserif">boolean</font> |
| 123 |
</td> |
| 124 |
</tr> |
| 125 |
<!-- Attribute --> |
| 126 |
<tr> |
| 127 |
<td bgcolor="#eeeeee" valign="top" align="left"> |
| 128 |
<font color="#000000" size="-1" face="arial,helvetica,sanserif">target</font> |
| 129 |
</td> |
| 130 |
<td bgcolor="#eeeeee" valign="top" align="left"> |
| 131 |
<font color="#000000" size="-1" face="arial,helvetica,sanserif">Target to execute, required.</font> |
| 132 |
</td> |
| 133 |
<td bgcolor="#eeeeee" valign="top" align="left"> |
| 134 |
<font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font> |
| 135 |
</td> |
| 136 |
</tr> |
| 137 |
<!-- Attribute --> |
| 138 |
<tr> |
| 139 |
<td bgcolor="#eeeeee" valign="top" align="left"> |
| 140 |
<font color="#000000" size="-1" face="arial,helvetica,sanserif">verbose</font> |
| 141 |
</td> |
| 142 |
<td bgcolor="#eeeeee" valign="top" align="left"> |
| 143 |
<font color="#000000" size="-1" face="arial,helvetica,sanserif">Enable verbose output when signing ; optional: default false</font> |
| 144 |
</td> |
| 145 |
<td bgcolor="#eeeeee" valign="top" align="left"> |
| 146 |
<font color="#000000" size="-1" face="arial,helvetica,sanserif">boolean</font> |
| 147 |
</td> |
| 148 |
</tr> |
| 149 |
|
| 150 |
|
| 151 |
</table> |
| 152 |
</blockquote></td></tr> |
| 153 |
|
| 154 |
</table> |
| 155 |
<!-- End Attributes --> |
| 156 |
|
| 157 |
<!-- Start Elements --> |
| 158 |
<table border="0" cellspacing="0" cellpadding="2" width="100%"> |
| 159 |
<tr><td> </td></tr> |
| 160 |
|
| 161 |
<tr><td bgcolor="#525D76"> |
| 162 |
<font color="#ffffff" face="arial,helvetica.sanserif"> |
| 163 |
<a name="elements"> |
| 164 |
<strong>Parameters as nested elements</strong></a></font> |
| 165 |
</td></tr> |
| 166 |
|
| 167 |
<tr><td><blockquote> |
| 168 |
<!-- Start Element --> |
| 169 |
<table border="0" cellspacing="0" cellpadding="2" width="100%"> |
| 170 |
<tr><td> </td></tr> |
| 171 |
<tr><td bgcolor="#828DA6"> |
| 172 |
<font color="#ffffff" face="arial,helvetica.sanserif" size="-1"> |
| 173 |
<strong>param</strong> (org.apache.axis.tools.ant.foreach.ParamSet)</font> |
| 174 |
</td></tr> |
| 175 |
<tr><td><blockquote> |
| 176 |
|
| 177 |
<!-- Ignore --> |
| 178 |
<!-- Ignore --> |
| 179 |
|
| 180 |
</blockquote></td></tr> |
| 181 |
</table> |
| 182 |
<!-- End Element --> |
| 183 |
|
| 184 |
</blockquote></td></tr> |
| 185 |
|
| 186 |
</table> |
| 187 |
<!-- End Elements --> |
| 188 |
|
| 189 |
|
| 190 |
</td> |
| 191 |
</tr> |
| 192 |
<!-- END RIGHT SIDE MAIN BODY --> |
| 193 |
|
| 194 |
<!-- FOOTER SEPARATOR --> |
| 195 |
<tr> |
| 196 |
<td> |
| 197 |
<hr noshade="" size="1"/> |
| 198 |
</td> |
| 199 |
</tr> |
| 200 |
|
| 201 |
<!-- PAGE FOOTER --> |
| 202 |
<tr> |
| 203 |
<td> |
| 204 |
<div align="center"><font color="#525D76" size="-1"><em> |
| 205 |
Copyright © 2000-2003, Apache Software Foundation |
| 206 |
</em></font></div> |
| 207 |
</td> |
| 208 |
</tr> |
| 209 |
|
| 210 |
</table> |
| 211 |
|
| 212 |
</body> |
| 213 |
</html> |