On Tue, 24 Jul 2001, Marco Voorbraak <[EMAIL PROTECTED]> wrote:

> 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.

It would be &lt;

But this will probably not do what you want as the input redirection
you are looking for is performed by the shell (at least on Unix).

Make that

<exec executable="/bin/sh">
  <arg value="-c" />
  <arg value="mysql -h server -u xxx -pqwerty database &lt; script.sql" />
</exec> 

Or use the <sql> task.

Stefan

Reply via email to