ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: Detecting Tomcat 5
Date Wed, 28 Apr 2004 06:16:03 GMT
You know that <available> supports a nested <classpath>?

Jan

> -----Original Message-----
> From: Matt Raible [mailto:matt@raibledesigns.com]
> Sent: Wednesday, April 28, 2004 8:06 AM
> To: Ant Users List
> Subject: Re: Detecting Tomcat 5
> 
> 
> Thanks Stefan.  After looking into this more, I don't think I'm going 
> to be able to key off a class in catalina-ant.jar.  If I do, 
> I'll have 
> to put it in my $ANT_HOME/lib directory in order for it to be 
> a part of 
> the default classpath.  Is there a better way to detect Tomcat 5?
> 
> Thanks,
> 
> Matt
> 
> On Apr 27, 2004, at 11:55 PM, Stefan Bodewig wrote:
> 
> > 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
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message