If you want redirection, you need to exec a shell to process it.
Thus you'd need something like this:
<exec executable="sh">
<arg value="-c"/>
<arg value="mysql -h server -u xxx -pqwerty database <script.sql" />
</exec>
As many times as I've seen this answered lately, it should be put into
the FAQ.
Marco Voorbraak wrote:
>
> Hello,
>
> i want to use the following command:
>
> <exec executable="mysql">
> <arg line="-h server -u xxx -pqwerty database <script.sql" />
> </exec>
>
> But ant complains about the '<' character, how can I
> solve this. Is there any way to escape the charater?
>
> Greetings,
> Marco Voorbraak
>
> ------------------------------------------------------------------------
> Barito Innovators, Innovation is our Motivation!
> ------------------------------------------------------------------------
> Barito Innovators B.V.
> De Mulderij 4, 3831 NV Leusden / P.O. Box 387, 3830 AK Leusden
> The Netherlands
> Phone +31 (0)33 494 79 71 / Fax +31 (0)33 494 85 44
> Internet http://www.barito.nl
> ------------------------------------------------------------------------
--
Larry V. Streepy, Jr.
Chief Technical Officer and VP of Engineering
Health Language, Inc. -- "We speak the language of healthcare"
970/626-5028 (office) mailto:[EMAIL PROTECTED]
970/626-4425 (fax) http://www.healthlanguage.com