ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Raible" <m...@raibledesigns.com>
Subject RE: Detecting Tomcat 5
Date Wed, 28 Apr 2004 08:18:09 GMT
The main reason I'm setting the property is b/c I'm doing a check for
tomcat5 in two different places.  Using the classname method in both
areas adds a few extra lines to build.xml.

> -----Original Message-----
> From: Stefan Bodewig [mailto:bodewig@apache.org] 
> Sent: Wednesday, April 28, 2004 1:43 AM
> To: user@ant.apache.org
> Subject: Re: Detecting Tomcat 5
> 
> 
> On Wed, 28 Apr 2004, Matt Raible <matt@raibledesigns.com> wrote:
> 
> > Very cool.  I was able to modify my check to be the following:
> > 
> >         <available classname="org.apache.catalina.ant.SessionsTask"
> >             property="tomcat5">
> >             <classpath>
> >                 <pathelement 
> > path="${tomcat.home}/server/lib/catalina-ant.jar"/>
> >             </classpath>
> >         </available>
> > 
> >         <if>
> >             <isset property="tomcat5"/>
> 
> Why not
> 
>   <if>
>       <available classname="org.apache.catalina.ant.SessionsTask">
>           <classpath>
>               <pathelement 
> path="${tomcat.home}/server/lib/catalina-ant.jar"/>
>           </classpath>
>       </available>
> 
> instead?  Do you need the tomcat5 property for anything else?
> 
> Stefan
> 
> ---------------------------------------------------------------------
> 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
View raw message