You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by st...@apache.org on 2006/07/07 22:46:17 UTC
svn commit: r419978 - /ant/core/trunk/docs/manual/CoreTasks/conditions.html
Author: stevel
Date: Fri Jul 7 13:46:16 2006
New Revision: 419978
URL: http://svn.apache.org/viewvc?rev=419978&view=rev
Log:
delete spurious letter F; update copyright
Modified:
ant/core/trunk/docs/manual/CoreTasks/conditions.html
Modified: ant/core/trunk/docs/manual/CoreTasks/conditions.html
URL: http://svn.apache.org/viewvc/ant/core/trunk/docs/manual/CoreTasks/conditions.html?rev=419978&r1=419977&r2=419978&view=diff
==============================================================================
--- ant/core/trunk/docs/manual/CoreTasks/conditions.html (original)
+++ ant/core/trunk/docs/manual/CoreTasks/conditions.html Fri Jul 7 13:46:16 2006
@@ -706,8 +706,66 @@
</tr>
</table>
+<h4>hasmethod</h4>
+
+<p> Tests for a class having a method or field. If the class is not found
+ or fails to load, the build fails.
+
+ <b>Since Ant 1.7</b>
+</p>
+
+<table border="1" cellpadding="2" cellspacing="0">
+ <tr>
+ <td width="12%" valign="top"><b>Attribute</b></td>
+ <td width="78%" valign="top"><b>Description</b></td>
+ <td width="10%" valign="top"><b>Required</b></td>
+ </tr>
+ <tr>
+ <td valign="top">classname</td>
+ <td valign="top">name of the class to load</td>
+ <td align="center">yes</td>
+ </tr>
+ <tr>
+ <td valign="top">field</td>
+ <td valign="top">name of a field to look for</td>
+ <td align="center">one of field or method</td>
+ </tr>
+ <tr>
+ <td valign="top">method</td>
+ <td valign="top">name of a method to look for</td>
+ <td align="center">one of field or method</td>
+ </tr>
+
+ <tr>
+ <td valign="top">ignoreSystemClasses</td>
+ <td valign="top">should system classes be ignored?</td>
+ <td align="center">No -default is false</td>
+ </tr>
+ <tr>
+ <td valign="top">classpath</td>
+ <td valign="top">a class path</td>
+ <td align="center">No</td>
+ </tr>
+ <tr>
+ <td valign="top">classpathref</td>
+ <td valign="top">reference to a class path</td>
+ <td align="center">No</td>
+ </tr>
+</table>
+
+<p>
+ There is also a nested <classpath> element, which can be used to specify
+ a classpath.
+</p>
+<pre>
+ <hasmethod classname="java.util.ArrayList" method="trimToSize" />
+</pre>
+
+<p>Looks for the method trimToSize in the ArrayList class.</p>
+
+
<hr>
-<p align="center">Copyright © 2001-2005 Apache Software
+<p align="center">Copyright © 2001-2006 Apache Software
Foundation. All rights Reserved.</p>
</body>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: svn commit: r419978 - /ant/core/trunk/docs/manual/CoreTasks/conditions.html
Posted by Steve Loughran <st...@apache.org>.
Matt Benson wrote:
> Steve... did you mean to also commit the doc for a
> hasmethod task? :)
>
> -Matt
>
I thought I'd already checked that condition in. Let me look at my SVN
files. Its a condition that checks if a task has a named method. Useful
for very low-level feature checking against libraries.
-steve
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: svn commit: r419978 - /ant/core/trunk/docs/manual/CoreTasks/conditions.html
Posted by Matt Benson <gu...@yahoo.com>.
Steve... did you mean to also commit the doc for a
hasmethod task? :)
-Matt
--- stevel@apache.org wrote:
> Author: stevel
> Date: Fri Jul 7 13:46:16 2006
> New Revision: 419978
>
> URL:
> http://svn.apache.org/viewvc?rev=419978&view=rev
> Log:
> delete spurious letter F; update copyright
>
> Modified:
>
> ant/core/trunk/docs/manual/CoreTasks/conditions.html
>
> Modified:
> ant/core/trunk/docs/manual/CoreTasks/conditions.html
> URL:
>
http://svn.apache.org/viewvc/ant/core/trunk/docs/manual/CoreTasks/conditions.html?rev=419978&r1=419977&r2=419978&view=diff
>
==============================================================================
> ---
> ant/core/trunk/docs/manual/CoreTasks/conditions.html
> (original)
> +++
> ant/core/trunk/docs/manual/CoreTasks/conditions.html
> Fri Jul 7 13:46:16 2006
> @@ -706,8 +706,66 @@
> </tr>
> </table>
>
> +<h4>hasmethod</h4>
> +
> +<p> Tests for a class having a method or field. If
> the class is not found
> + or fails to load, the build fails.
> +
> + <b>Since Ant 1.7</b>
> +</p>
> +
> +<table border="1" cellpadding="2" cellspacing="0">
> + <tr>
> + <td width="12%"
> valign="top"><b>Attribute</b></td>
> + <td width="78%"
> valign="top"><b>Description</b></td>
> + <td width="10%"
> valign="top"><b>Required</b></td>
> + </tr>
> + <tr>
> + <td valign="top">classname</td>
> + <td valign="top">name of the class to
> load</td>
> + <td align="center">yes</td>
> + </tr>
> + <tr>
> + <td valign="top">field</td>
> + <td valign="top">name of a field to look
> for</td>
> + <td align="center">one of field or
> method</td>
> + </tr>
> + <tr>
> + <td valign="top">method</td>
> + <td valign="top">name of a method to look
> for</td>
> + <td align="center">one of field or
> method</td>
> + </tr>
> +
> + <tr>
> + <td valign="top">ignoreSystemClasses</td>
> + <td valign="top">should system classes be
> ignored?</td>
> + <td align="center">No -default is
> false</td>
> + </tr>
> + <tr>
> + <td valign="top">classpath</td>
> + <td valign="top">a class path</td>
> + <td align="center">No</td>
> + </tr>
> + <tr>
> + <td valign="top">classpathref</td>
> + <td valign="top">reference to a class
> path</td>
> + <td align="center">No</td>
> + </tr>
> +</table>
> +
> +<p>
> + There is also a nested <classpath>
> element, which can be used to specify
> + a classpath.
> +</p>
> +<pre>
> + <hasmethod classname="java.util.ArrayList"
> method="trimToSize" />
> +</pre>
> +
> +<p>Looks for the method trimToSize in the ArrayList
> class.</p>
> +
> +
> <hr>
> -<p align="center">Copyright © 2001-2005 Apache
> Software
> +<p align="center">Copyright © 2001-2006 Apache
> Software
> Foundation. All rights Reserved.</p>
>
> </body>
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> dev-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> dev-help@ant.apache.org
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org