Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 27574 invoked from network); 11 Jan 2001 20:10:48 -0000 Received: from unknown (HELO hq?servexg.epit.com) (63.118.159.200) by h31.sny.collab.net with SMTP; 11 Jan 2001 20:10:48 -0000 Received: by HQ_SERVEXG with Internet Mail Service (5.5.2448.0) id ; Thu, 11 Jan 2001 12:09:28 -0800 Message-ID: <52B4FBC1ECA3D411B2660008C79F47CF40C74D@HQ_SERVEXG> From: Maxim Kur To: ant-user@jakarta.apache.org Subject: RE: Environment variable in Ant Date: Thu, 11 Jan 2001 12:09:23 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="windows-1252" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N 1. all properties returned by java.lang.System.getProperties() are known to Ant. You can use them as they are, e.g. ${os.name}, or ${user.home}, etc. 2. you can set properties in the command line when invoking Ant. For instance, to set and use MYPROP on NT: set MYPROP = THIS_IS_MY_PROPERTY java -DMYPROP=%MYPROP% org.apache.tools.ant.Main and then in Ant you refer to that as to ${MYPROP}... -----Original Message----- From: William Lee [mailto:wlee@sendmail.com] Sent: Thursday, January 11, 2001 8:57 AM To: Ant User Subject: Environment variable in Ant I'm wondering how one can refer to an environment variable in Ant's xml build file? How do you make the environment variable part of the property? Thanks, Will