Ok, got it. Thanks.
----Original Message Follows----
From: Guru Balse <[EMAIL PROTECTED]>
Reply-To: "Ant Users List" <user@ant.apache.org>
To: Ant Users List <user@ant.apache.org>
Subject: Re: How do I get <exec> 's output back into my ant script?
Date: Thu, 08 Sep 2005 10:38:16 -0700
MIME-Version: 1.0
Received: from mail.apache.org ([209.237.227.199]) by mc7-f41.hotmail.com
with Microsoft SMTPSVC(6.0.3790.211); Thu, 8 Sep 2005 10:39:42 -0700
Received: (qmail 43745 invoked by uid 500); 8 Sep 2005 17:38:22 -0000
Received: (qmail 43732 invoked by uid 99); 8 Sep 2005 17:38:22 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by
apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Sep 2005 10:38:22 -0700
Received: pass (asf.osuosl.org: local policy)
Received: from [141.146.126.231] (HELO agminet04.oracle.com)
(141.146.126.231) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Sep
2005 10:38:34 -0700
Received: from rgmsgw301.us.oracle.com (rgmsgw301.us.oracle.com
[138.1.186.50])by agminet04.oracle.com (Switch-3.1.7/Switch-3.1.7) with
ESMTP id j88HcI5s017799for <user@ant.apache.org>; Thu, 8 Sep 2005 12:38:18
-0500
Received: from rgmsgw301.us.oracle.com (localhost [127.0.0.1])by
rgmsgw301.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id
j88HcI97028458for <user@ant.apache.org>; Thu, 8 Sep 2005 11:38:18 -0600
Received: from oracle.com (dhcp-1op5-1op6-west-144-25-142-129.us.oracle.com
[144.25.142.129])by rgmsgw301.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with
ESMTP id j88HcHBl028451for <user@ant.apache.org>; Thu, 8 Sep 2005 11:38:17
-0600
X-Message-Info: JGTYoYF78jEHjJx36Oi8+Z3TmmkSEdPtfpLB7P/ybN8=
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Post: <mailto:user@ant.apache.org>
List-Id: "Ant Users List" <user.ant.apache.org>
Delivered-To: mailing list user@ant.apache.org
X-ASF-Spam-Status: No, hits=0.0 required=10.0tests=
X-Spam-Check-By: apache.org
X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U)
X-Accept-Language: en
References: <[EMAIL PROTECTED]>
X-Brightmail-Tracker: AAAAAQAAAAI=
X-Whitelist: TRUE
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 08 Sep 2005 17:39:42.0723 (UTC)
FILETIME=[4BA99530:01C5B49C]
S I:
I am sure there are many solutions. The first one that comes to my mind is
to write the necessary string(s) out to a file (in the perl script) and then
load the string(s) to a property in my ant script(s) using <loadfile>
S I wrote:
>
> Hi
>
> I'm not quiet sure how to do this? I wrote a perl script to parse out
the
> revision number out of SVN logs. I call this perl script from my Ant
> build.xml by using <exec> like so
>
> <exec executable="perl c:\revision.pl" os="Windows_NT" resultproperty="?"
> output="?" />
>
> <echo message="${output}" />
>
> I have no clue how to get the perl scripts final result back into my ant
> script. Am I on the right track using exec?
>
> Thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]