Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 32949 invoked from network); 7 Jan 2008 14:17:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Jan 2008 14:17:36 -0000 Received: (qmail 2864 invoked by uid 500); 7 Jan 2008 14:17:21 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 2726 invoked by uid 500); 7 Jan 2008 14:17:20 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 2715 invoked by uid 99); 7 Jan 2008 14:17:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jan 2008 06:17:20 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [206.190.48.105] (HELO web52102.mail.re2.yahoo.com) (206.190.48.105) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 07 Jan 2008 14:17:08 +0000 Received: (qmail 72369 invoked by uid 60001); 7 Jan 2008 14:16:59 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=0i+9w410McJySuu75Ln3h3wMM2VPgbxll2SoK5zBmgWO/kOzowjr9H/O5FTdCnNSIN0aSbgqdpppX1tAMczsBoWi6OZ2Rtx1zM4kKRXn8yhjwFS0EBjIs7ImdgA/vY2hpBVg+xI33p/Onp2BT7/vM0TQSO/H8LVqyoYkpXgL5pw=; X-YMail-OSG: gQMiiQkVM1l7aft7OiBQvG.y3uIcBLEtPjD1182t60tIiP_3Zo6PSm1GZFYcgQ_Kjo1o9LJGjLUgpE8EIYW.YY9iv5oNDb2FtqngjXCS1.0uSphotndV2HLGRFLhxA-- Received: from [209.211.169.130] by web52102.mail.re2.yahoo.com via HTTP; Mon, 07 Jan 2008 06:16:58 PST Date: Mon, 7 Jan 2008 06:16:58 -0800 (PST) From: Chuck Holzwarth Subject: RE: environment attribute To: Ant Users List In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1254858159-1199715418=:71732" Content-Transfer-Encoding: 8bit Message-ID: <340222.71732.qm@web52102.mail.re2.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --0-1254858159-1199715418=:71732 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Try using the ant exec task to run the env command. Are you sure the HOSTNAME variable is exported to sub shells? Does cruisecontrol execute under your ID or asynchronously? It is possible that cruisecontrol runs under a different ID even if you kick it off manually. The output of the env command should give an indication. Barry Pape wrote: Thanks for the feedback. I verified that the HOSTNAME variable is set, but it doesn't get resolved during the ant build. cruisecontrol@dev02 ~/cruisecontrol/projects/webnew-dec2007/netsoft/webnew $ echo $HOSTNAME dev02 cruisecontrol@dev02 ~/cruisecontrol/projects/webnew-dec2007/netsoft/webnew $ ant hostname Buildfile: build.xml hostname: [echo] Using ${env.HOSTNAME} for host name BUILD SUCCESSFUL Total time: 5 seconds Not sure if any of this information helps, but here: cruisecontrol@dev02 ~/cruisecontrol/projects/webnew-dec2007/netsoft/webnew $ uname -rsv SunOS 5.10 Generic_125100-10 cruisecontrol@dev02 ~/cruisecontrol/projects/webnew-dec2007/netsoft/webnew $ echo $OSTYPE solaris2.10 Thanks, Barry -----Original Message----- From: Chuck Holzwarth [mailto:chuck_holzwarth@yahoo.com] Sent: Friday, January 04, 2008 3:03 PM To: Ant Users List Subject: Re: environment attribute I just tried this on a Solaris VM on my desktop and HOSTNAME is not defined by default. You may want to issue "export HOSTNAME=`hostname`" in your .profile. Change this as appropriate for your shell. Dominique Devienne wrote: On 1/4/08, Barry Pape wrote: > Hopefully this is a quick and easy question. Is the environment > attribute of the property task supported on Solaris? Yes. > I've been trying > to use ${env.HOSTNAME} but it doesn't appear to resolve. Most likely because you have no such env. var. in your current shell. Verify that using echo $HOSTNAME in the same shell you run Ant from. Available env. vars varies by OS and shell usually. --DD --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org Thank you, Chuck Holzwarth (804) 403-3478 (home) (540) 335-3171 (cell) --------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search. ----------------------------------------- Confidentiality Notice! This electronic transmission and any attached documents or other writings are confidential and are for the sole use of the intended recipient(s) identified above. This message may contain information that is privileged, confidential or otherwise protected from disclosure under applicable law. If the receiver of this information is not the intended recipient, or the employee, or agent responsible for delivering the information to the intended recipient, you are hereby notified that any use, reading, dissemination, distribution, copying or storage of this information is strictly prohibited. If you have received this information in error, please notify the sender by return email and delete the electronic transmission, including all attachments from your system. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org Thank you, Chuck Holzwarth (804) 403-3478 (home) (540) 335-3171 (cell) --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. --0-1254858159-1199715418=:71732--