From: "Steve Dews" <[EMAIL PROTECTED]>
Subject: unix redirection - how do you specify input files?
> Here's what I'm trying to do:
>
> $ sed -e 's/bad/good/' < oldfile > newfile
>
> Here's what I've got in Ant:
>
> <exec executable="sed" output="./newfile">
> <arg>-e</arg>
> <arg>'s/bad/good/'</arg>
> </exec>
>
> Where does the input file belong in the Ant syntax?
> As an <arg>? That doesn't seem to work.
Ok your syntax is wrong try this
<exec executable="sed" output="./newfile">
<arg line="-e 's/bad/good/'"/>
</exec>
This should work. Take a deeper look at the manual avaible at
http://jakarta.apache.org/ant/jakarta-ant/docs/.
Yours Stefan S
- unix redirection - how do you specify input files? Steve Dews
- Re: unix redirection - how do you specify input files? Stefan Schmitt
- Re: unix redirection - how do you specify input files? Bill Burton
- Re: unix redirection - how do you specify input fi... David Corbin
- Re: unix redirection - how do you specify inpu... James Bucanek
- Re: unix redirection - how do you specify inpu... Bill Burton
- Re: unix redirection - how do you specify input files? Steve Dews
- Re: unix redirection - how do you specify input files? glennm
- Re: unix redirection - how do you specify input files? Steve Dews
- Re: unix redirection - how do you specify input files? Shane_Curcuru
- RE: unix redirection - how do you specify input files? Dana Rice
