--- "Guthrie, John" <[EMAIL PROTECTED]> wrote:
> One reason I am still using makefiles in certain parts of the build tree
> is it's ability to assign variables a la:
> ARCH_DIR=`uname -ms | sed -e "s/ /_/g"`
>
> Is there a(n easy) way to do this in ant?
<target name="setArchDir">
<exec executable="sh" outputproperty="ARCH_DIR">
<arg line="-c "uname -ms | sed -e 's/ /_/g'""/>
</exec>
<echo message="ARCH_DIR = ${ARCH_DIR}"/>
</target>
Diane
=====
([EMAIL PROTECTED])
__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards�
http://movies.yahoo.com/
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>