We use this to get the machine name - works on unix and windows. <exec executable="hostname" outputproperty="host.name" failonerror="false"/>
Ben -----Original Message----- From: Rakesh Patel [mailto:[EMAIL PROTECTED] Sent: Friday, October 07, 2005 11:56 AM To: Ant Users List Subject: RE: Help with choosing build property file On of the other links points to this as a solution: <target name="set-name"> <property environment="env"/> <property name="env.HOSTNAME" value="${env.COMPUTERNAME}"/> <echo message="host = ${env.HOSTNAME}"/> </target> Which works on Win2k but will have to test on Solaris later. Thanks Rakesh -----Original Message----- From: Shatzer, Larry [mailto:[EMAIL PROTECTED] Sent: 07 October 2005 16:51 To: 'Ant Users List' Subject: RE: Help with choosing build property file > -----Original Message----- > From: Rakesh Patel [mailto:[EMAIL PROTECTED] > Sent: Friday, October 07, 2005 8:43 AM > To: Ant Users List > Subject: RE: Help with choosing build property file > > > Hi James, > > Both your links point to the same resource (the first hit in google). > > However, this does not work for me(on Windows): > What version of windows? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] American Express Investments and American Express Independent Financial Advisers are marketing names for American Express Financial Services Europe Limited, a separate corporation within the American Express group of companies. American Express Financial Services Europe Limited is authorised and regulated by, and is entered into the register (No. 190853 www.fsa.gov.uk/register/) of, the Financial Services Authority and a member of the London Stock Exchange. Registered in England No. 3614902. Registered address: 230 Blackfriars Road, London SE1 8NW. Vat No. 740 4143 68. The information in this email and any attachments is confidential and intended solely for the attention and use of the named addressee(s). It may be subject to legal, professional or other privilege and further distribution of it is strictly prohibited without our authority. If you are not the intended recipient, you are not authorised to and must not disclose, copy, distribute, or retain this message or any part of it, and should notify us immediately. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ************************************************************** This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. TIAA-CREF ************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]