ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <>
Subject Re: How can I append files from exec?
Date Fri, 20 Oct 2000 15:20:56 GMT
--- Stefan Bodewig <> wrote:
>  JA> <arg value="&quot;cat ${tmplogfile}: &gt;&gt; ${logfile}&quot;"/>
> My fault, the &quot;s are superfluos, sorry.
>     <exec executable="sh">
>       <arg value="-c" />
>       <arg value="cat ~/.antrc &gt;&gt; /tmp/test.antrc" />
>     </exec>

If you do the <arg> as a single "line", then you need the quot;'s after
the -c -- eg:
  <exec executable="sh">
    <arg line="-c &quot;cat foo bar | sort -u &gt; foobar&quot;"/>

If you do it as separate <arg>'s (as Stefan did), then you don't need to
include quot;'s around the second <arg> "value".

BTW: If you run the target with ant -verbose, you can see the command-line
that's being passed.



Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.

View raw message