ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject RE: article: combining make and ant
Date Thu, 21 Mar 2002 18:24:39 GMT
--- "Guthrie, John" <JGuthrie@air.org> 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 &quot;uname -ms | sed -e 's/ /_/g'&quot;"/>
    </exec>
    <echo message="ARCH_DIR = ${ARCH_DIR}"/>
  </target>

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message