ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guru Balse <guru.ba...@oracle.com>
Subject Re: How do I get <exec> 's output back into my ant script?
Date Thu, 08 Sep 2005 17:38:16 GMT
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


Mime
View raw message