You can use the outputproperty parameter of ant's exec task.
HTH,
-Lukas
john blair wrote:
I am new to maven and I am sorry if this sounds stupid. I am trying to assign
the output of a command to a variable.
The command is triple=`./config.guess`.
I tried the following with no luck
<goal name="mine" description="test">
<exec dir="src"
executable="env"
failonerror="true">
<arg line="triple=`./config.guess`"/>
</exec>
</goal>
Can someone tell how to do this?
Thanks
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates
starting at 1¢/min.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]