Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 75235 invoked from network); 12 Jun 2008 08:02:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jun 2008 08:02:09 -0000 Received: (qmail 13412 invoked by uid 500); 12 Jun 2008 08:02:07 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 13379 invoked by uid 500); 12 Jun 2008 08:02:07 -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 13368 invoked by uid 99); 12 Jun 2008 08:02:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jun 2008 01:02:07 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [193.201.183.194] (HELO sscd0002.dmz.huk.de) (193.201.183.194) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jun 2008 08:01:18 +0000 Received: from sscd0028.dmz.huk.de ([10.148.152.146]) by sscd0002.dmz.huk.de with Microsoft SMTPSVC(6.0.3790.1830); Thu, 12 Jun 2008 10:01:12 +0200 Received: by sscd0028.dmz.huk.de (Postfix, from userid 1) id 99840580A1; Thu, 12 Jun 2008 10:01:49 +0200 (CEST) Received: from sscd0002.dmz.huk.de (sscd0002.dmz.huk.de [10.148.152.132]) by sscd0028.dmz.huk.de (Postfix) with ESMTP id 86734580A2 for ; Thu, 12 Jun 2008 10:01:49 +0200 (CEST) Received: from SMX00002.lan.huk-coburg.de (unverified) by sscd0002.dmz.huk.de (HUK-COBURG Mailrelay2) with ESMTP id for ; Thu, 12 Jun 2008 10:01:12 +0200 Received: from VEX00130.lan.huk-coburg.de (10.131.117.132) by SMX00002.lan.huk-coburg.de (10.131.34.183) with Microsoft SMTP Server id 8.1.263.0; Thu, 12 Jun 2008 10:01:12 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 MIME-Version: 1.0 Subject: RE: Using the script tag, wanting to return a value Date: Thu, 12 Jun 2008 10:01:11 +0200 Message-ID: <3AE93DC078AE8A41AEDA6B95DE4EB92D029DDF22@VEX00130.lan.huk-coburg.de> In-Reply-To: <6FFAA0FA-5402-4FF1-9932-40D8BD08086E@mac.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Using the script tag, wanting to return a value Thread-Index: AcjML6HgkYFbdk0RQmGpY1eaLm5HcAAIKwHQ References: <6FFAA0FA-5402-4FF1-9932-40D8BD08086E@mac.com> From: "Rebhan, Gilbert" To: "Ant Users List" Content-Class: urn:content-classes:message Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-OriginalArrivalTime: 12 Jun 2008 08:01:12.0849 (UTC) FILETIME=[7B5B2010:01C8CC62] X-Virus-Checked: Checked by ClamAV on apache.org =20 Hi, Jeremy -----Original Message----- From: Jeremy Hanna [mailto:jeremy_hanna@mac.com]=20 Sent: Thursday, June 12, 2008 3:56 AM To: user@ant.apache.org Subject: Using the script tag, wanting to return a value /* I'm using the script tag to run a ruby script and would like to return =20 a value from the script. Is that possible? I see that I can use the =20 setbeans attribute to have access to the build.xml variables from =20 within the ruby script. I can output them and even change those =20 variables within the ruby script, but those changes disappear once the =20 script returns. Is there any way to return the value? Really I'm trying to get the result of `svn info` which is retrieved =20 in my ruby script. I haven't seen ant libraries out there that do =20 that - most don't implement the info function. I tried using the exec =20 task but that seems to need the path information and that gets too =20 messy. */ if you need to return value(s) out of =20 Regards, Gilbert --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org