Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 84503 invoked from network); 2 Feb 2004 14:46:32 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 2 Feb 2004 14:46:32 -0000 Received: (qmail 52036 invoked by uid 500); 2 Feb 2004 14:46:05 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 51970 invoked by uid 500); 2 Feb 2004 14:46:05 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 51910 invoked from network); 2 Feb 2004 14:46:04 -0000 Received: from unknown (HELO mclmx.mail.saic.com) (149.8.64.10) by daedalus.apache.org with SMTP; 2 Feb 2004 14:46:04 -0000 Received: from mcl-its-ieg01.mail.saic.com by mclmx.mail.saic.com for user@ant.apache.org; Mon, 2 Feb 2004 09:45:01 -0500 Received: from mcl-its-exig01.mail.saic.com ([149.8.64.12]) by mcl-its-ieg01.mail.saic.com (SAVSMTP 3.1.2.35) with SMTP id M2004020209450008974 for ; Mon, 02 Feb 2004 09:45:00 -0500 Received: by mcl-its-exig01.mail.saic.com with Internet Mail Service (5.5.2657.72) id ; Mon, 2 Feb 2004 09:45:00 -0500 Message-Id: <4332A88C1C9F894CB4A1D8A45A6A3DD101562DF6@us-huntsville-cst.mail.saic.com> From: "Paul, R. Chip" To: 'Ant Users List' Subject: RE: ant variables on win & unix Date: Mon, 2 Feb 2004 09:44:57 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Shouldn't you have an environment variable named TOMCAT_HOME anyway? = (or is it CATALINA_HOME?) I thought Tomcat wanted that to run properly. If you have an env variable you could just do: Alternatively, specify webapp.dir in a build.properties file that = defines it properly for each environment. I'm not sure you want to check for an = OS version for something as simple as a path change. Chip Paul Sr Software Engineer ComFrame Software Corporation =A0 Listen.Understand.Innovate www.comframe.com -----Original Message----- From: Pete Stokes [mailto:stokesp@quinn-direct.com]=20 Sent: Monday, February 02, 2004 8:05 AM To: user@ant.apache.org Subject: ant variables on win & unix Hi. I want to ant to automatically detect which platform I'm running it on=20 (win/linux) and therefore to use a different variable for the deploy=20 target, i.e. in win I'd need to take into account drive names win: e:/java/deploy/tomcat/webapps/myapp linux /usr/local/tomcat/webapps/myapp Looked at system properties, but cannot figure it out, any help would = be=20 greatly appreciated. Regards, Pete. ************************************************************************= **** ******* This email and any files transmitted with it are confidential and = intended solely for the use of the individual or entity to whom they are = addressed. If you have received this email in error please notify the system = manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ************************************************************************= **** ******* For any information on the Quinn Group of Companies please visit :- http://www.quinn-group.com --------------------------------------------------------------------- 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