ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "RADEMAKERS Tanguy" <Tanguy.RADEMAK...@swift.com>
Subject RE: How do I get <exec> 's output back into my ant script?
Date Thu, 08 Sep 2005 17:49:18 GMT
i thought this is what the outputproperty attribute of the exec task was
for?

/t 

>-----Original Message-----
>From: Guru Balse [mailto:guru.balse@oracle.com] 
>Sent: Thursday, September 08, 2005 7:38 PM
>To: Ant Users List
>Subject: Re: How do I get <exec> 's output back into my ant script?
>
>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: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message