Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 32469 invoked from network); 25 Aug 2004 11:40:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 25 Aug 2004 11:40:43 -0000 Received: (qmail 51770 invoked by uid 500); 25 Aug 2004 11:40:35 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 51487 invoked by uid 500); 25 Aug 2004 11:40:33 -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 51467 invoked by uid 99); 25 Aug 2004 11:40:33 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [24.177.123.176] (HELO postfix.mail.ehatchersolutions.com) (24.177.123.176) by apache.org (qpsmtpd/0.27.1) with ESMTP; Wed, 25 Aug 2004 04:40:33 -0700 Received: from [127.0.0.1] (localhost [127.0.0.1]) by postfix.mail.ehatchersolutions.com (Postfix) with ESMTP id 8A22C8AB831 for ; Wed, 25 Aug 2004 06:40:33 -0500 (CDT) Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: <200408242136.i7OLariq000927@barrierb241.nike.com> References: <200408242136.i7OLariq000927@barrierb241.nike.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <91D96D30-F68B-11D8-8982-000393A564E6@ehatchersolutions.com> Content-Transfer-Encoding: 7bit From: Erik Hatcher Subject: Re: Hostname in ant Date: Wed, 25 Aug 2004 06:40:31 -0500 To: "Ant Users List" X-Mailer: Apple Mail (2.619) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Aug 24, 2004, at 4:36 PM, Anderson, Rob (Global Trade) wrote: > Or if $HOSTNAME is set in your environment, you could use.... > > > > and refer to the hostname as "${env.HOSTNAME}". On Windows, however, HOSTNAME is not set. Here's a nice trick that gets it on 'nix and Windows: Use ${env.COMPUTERNAME} where the host/computer name is needed. Good ol' property immutability! Erik --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org