ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <mgai...@hotmail.com>
Subject Re: Operating System identification
Date Tue, 25 Jul 2006 22:04:37 GMT
Raghu-

Tomcat-
There is a property called htmlManagerServlet.serverOSName
here is an example on how to obtain the value
http://mail-archives.apache.org/mod_mbox/tomcat-dev/200606.mbox/%3C20060608153602.AFAE91A9846@eris.apache.org%3E

command line 
see if you can spawn/exec("uname")

HTH
Martin --
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



----- Original Message ----- 
From: "Raghuveer" <raghuveerv@infotechsw.com>
To: <user@ant.apache.org>
Sent: Saturday, July 08, 2006 4:26 AM
Subject: Operating System identification


> How to identify Operating System of my Application server.
> 
> I have property file in my web application for Windows and Linus.
> 
> I need to identify th Operating System and read specific configuration file
> in my Struts Application .?
> 
> Example:
> My Web application can be run on OC4J server,JBOSS  on Windows or Linux
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
>
Mime
View raw message