Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7711F9927 for ; Mon, 7 May 2012 22:17:26 +0000 (UTC) Received: (qmail 81320 invoked by uid 500); 7 May 2012 22:17:25 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 81277 invoked by uid 500); 7 May 2012 22:17:25 -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 81267 invoked by uid 99); 7 May 2012 22:17:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 May 2012 22:17:25 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [98.139.213.126] (HELO nm30-vm0.bullet.mail.bf1.yahoo.com) (98.139.213.126) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 07 May 2012 22:17:17 +0000 Received: from [98.139.215.140] by nm30.bullet.mail.bf1.yahoo.com with NNFMP; 07 May 2012 22:16:55 -0000 Received: from [98.139.212.193] by tm11.bullet.mail.bf1.yahoo.com with NNFMP; 07 May 2012 22:16:55 -0000 Received: from [127.0.0.1] by omp1002.mail.bf1.yahoo.com with NNFMP; 07 May 2012 22:16:55 -0000 X-Yahoo-Newman-Id: 235667.41418.bm@omp1002.mail.bf1.yahoo.com Received: (qmail 27179 invoked from network); 7 May 2012 22:16:55 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=DKIM-Signature:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:References:In-Reply-To:Mime-Version:Content-Transfer-Encoding:Content-Type:Message-Id:Cc:X-Mailer:From:Subject:Date:To; b=xoqAP0+s2YDPz12hvuOJMx97N0DEkSjkCO/jPQCUmJQKmOplgZw9Iw3g3V12lydIroXAd9JRiWzCh6hPollIU610dDTRWAKp92IiaCfKHBmE2amfHON2i6nyvuqRbHHXb3pyCUgGyKkW2Nko0jqBVnbMCRzp2tdfdP70lJHOzQ0= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1336429015; bh=/QyjCOOiioduqRKYaLo4G7TnaYmTxp2hMA2ZayA0bW4=; h=X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:References:In-Reply-To:Mime-Version:Content-Transfer-Encoding:Content-Type:Message-Id:Cc:X-Mailer:From:Subject:Date:To; b=yR/Wq/POq+/jpYtnyAOdsP3Kn1+eFTLw7I6KNRFj49fsoYsGkXLwt3t+8z8j0DhrWJVegpMZbvC17uQBYD4w4ysuswQrlazn8jpd2miYO8oFlEGO4Mh1hVgZTENFTTtAZFSAL9WvJaVMlRId9RNwGmvSVMT5y241bABKCc8Y9pk= X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: v4lL7gkVM1lF_AzO0wV9wf3ZpKfDcfUhExtZso4Oi84HJkA hfOOJGXjXmuP44UR.LwTVo8EN3CS.sf9z7FjXDJh9fzYdKyzilGSS0CJGaow TaSh6UGTbO.NNb9J4gsFeAS1xgv7HdBaDD4ewWziF26_QcLq8Fff2RYfaxdZ zwl8huY8JEQm0s6vLdYsAIqOxbhZbtAjVriMpDOX8vPBES2irqFEDxv1sXZz M9BBue3WXY4Si2B1gQkjv8WwuU5tFLfuQufQGZB.COwqylnA68._t8HnBYjn rAYLYynxKgubRZrLq5cxYXX_92RKnvy8S8hkE9aHCm_AIM9c44GqSztrvny7 RvnCW0laUTr5QxHERZTvOHs2KDJuiGs8dnZbyjRowrz9ls9OsXLjei9H2ZjX aIyR925wXzbKu3HqmHsk3MZ_sy9ZC8o65hxRAOWmEKi3z._4z5k86QYs- X-Yahoo-SMTP: 8SeyWoiswBB21nIHoap5pcHGstqJgS4- Received: from [192.168.1.100] (elstonkers@98.238.28.69 with xymcookie) by smtp110-mob.biz.mail.bf1.yahoo.com with SMTP; 07 May 2012 15:16:54 -0700 PDT References: <1336417921.39380.YahooMailNeo@web162102.mail.bf1.yahoo.com> <330B5A2BAB417E47A0BBB442C7BCB99D04FD932F@HQ-MAIL8.ptcnet.ptc.com> <1336422509.17858.YahooMailNeo@web162102.mail.bf1.yahoo.com> <0EB2EC55-34F1-4150-8C85-75075BC36D7B@flaxx.net> In-Reply-To: <0EB2EC55-34F1-4150-8C85-75075BC36D7B@flaxx.net> Mime-Version: 1.0 (1.0) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: <750FE69A-F564-48DB-8ECA-742AA561804D@yahoo.com> Cc: Ant Users List X-Mailer: iPhone Mail (9B176) From: Eric Fetzer Subject: Re: Build directly on machine vs. SSH to machine and start build Date: Mon, 7 May 2012 18:16:52 -0400 To: Ant Users List Thanks Simon! I can work with that... On May 7, 2012, at 5:41 PM, Simon Murcott wrote: > I ended up writing a custom ant task to do this. Unfortunately in both *ni= x and windows you can't always rely on environment variables. On *nix you ne= ed to read the output of /bin/hostname or on windows read the output of WScr= ipt.Network.ComputerName >=20 >=20 > Regards, Simon >=20 > On 8/05/2012, at 8:28 AM, Eric Fetzer wrote: >=20 >> Thanks Nathan, very helpful. This is at the top of my build file: >>=20 >> >>=20 >> When running with -v, I get this: >>=20 >> [property] Loading Environment env. >> Property "env.COMPUTERNAME" has not been set >>=20 >> And then the code below tries to import a property file that doesn't exis= t: >>=20 >> >> >> >> >> >> >> >> >> >>=20 >> Anyone know of a way to make this work from an ssh call? Seems like it w= ould be fine because even when I'm running this from a manual login, it's af= ter sshing from my own machine to this build machine... >>=20 >> Thanks, >> Eric >>=20 >>=20 >> ________________________________ >> From: "Perrier, Nathan" >> To: Ant Users List ; Eric Fetzer =20 >> Sent: Monday, May 7, 2012 1:17 PM >> Subject: RE: Build directly on machine vs. SSH to machine and start build= >>=20 >> Add -v in your call (or -debug): >>=20 >> ant [-v|-d] -f build.xml >>=20 >> -----Original Message----- >> From: Eric Fetzer [mailto:elstonkers@yahoo.com]=20 >> Sent: Monday, May 07, 2012 2:12 PM >> To: Ant Users >> Subject: Build directly on machine vs. SSH to machine and start build >>=20 >> This is very strange to me. Here are the 2 scenarios. >>=20 >> Scenario 1: >> 1) Log on to buildMachine as user builduser >> 2) >bash >> 3) >cd /my/builddir >> 3) >/opt/apache-ant-1.7.1/bin/ant -f build.xml -Dfull.buildnumber=3D3.0.= 2.8 >> 4) Build succeeds without issue >>=20 >> Scenario 2: >> 1) =46rom a different machine: >>> ssh -f builduser@buildMachine ". ~/.bash_profile;cd /app/rosstr/build;/o= pt/apache-ant-1.7.1/bin/ant -f build.xml -Dfull.buildnumber=3D3.0.2.8 >> 2) There are 7 different apps that get built in the build.xml file. Eac= h get called by the ant task. Only one of them fails with no indication as t= o why it failed. >>=20 >> I've tried loads of stuff. I echo just before it hits the ant call and t= he echo outputs. I've retyped the ant line several times without success. I= 've changed the order of this particular ant call and it doesn't matter, it f= ails when it gets to it. Here's the code that crashes: >>=20 >> >>=20 >> Not exactly a tough thing to do. Call the BuildReports.xml file in the c= urrent directory... Anyone have any idea what this could be or what I could= do to debug this? There is no verbose=3Dtrue on the ant task... >>=20 >> Thanks, >> Eric >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org