ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Detecting Tomcat 5
Date Wed, 28 Apr 2004 05:55:56 GMT
On Tue, 27 Apr 2004, Matt Raible <matt@raibledesigns.com> wrote:

> I believe the <available> task will help, but I'm unsure of how to
> to do the "if" logic with this property.

<available> is a task and a condition (if you leave off the property
attribute) at the same time, so you can say

<if>
  <available classname="org.apache.catalina.ant.SessionsTask">
  ...
</if>

If you want to use it as a task, you can use the <isset> condition to
check for the presence of the property <available> was supposed to
set.

Stefan

-- 
http://stefanbodewig.blogger.de/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message