tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <funk...@joedog.org>
Subject Re: detecting tomcat 5.5
Date Tue, 03 May 2005 22:59:37 GMT
<available classname="org.apache.catalina.valves.FastCommonAccessLogValve"
            classpath="${appserver.home}/server/lib/catalina-optional.jar"
            property="is55"/>

-Tim

Jason Novotny wrote:

> 
>    Thanks-- unfortunately by default (at least on Unix) that file is not 
> executable so it wouldn't even execute by default.
> 
>    Has anyone actually created an ant task or can give me some ant logic 
> for doing Tomcat version detection for 5.5? Here's a snippet that worked 
> for Tomcat 4 and Tomcat 5.0.X that was fairly easy:
> 
> <if>
>            <available file="${appserver.home}/conf/Catalina" type="dir" 
> prope
> rty="tomcat5"/>
>            <then>
>                <echo message="Detected Tomcat 5"/>
>            </then>
>            <else>
>                <echo message="Detected Tomcat 4"/>
>            </else>
>        </if>
> 
>    Thanks, Jason
> 
> Jason Bainbridge wrote:
> 
>> On 5/3/05, Jason Novotny <novotny@aei.mpg.de> wrote:
>>  
>>
>>> Hi,
>>>
>>>    I'm trying to update my build script to do some conditional checking
>>> to see if I'm deploying my code to Tomcat 5.5 or using an older version.
>>> Is there something (like a particular file or directory) I can check
>>> reliably that would indicate that I'm using 5.5 versus an older version?
>>>   
>>
>>
>> Look at %CATALINA_HOME%\bin\version.bat or version.sh depending on
>> whether you are on Windows or *nix, if you're on Windows and don't
>> have version.bat then you need to download the zipped distribution and
>> now thw windows installer.
>>
>> Regards,
>>  
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 

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


Mime
View raw message