ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: how to use '<' in a arg value
Date Tue, 24 Jul 2001 15:46:21 GMT
On Tue, 24 Jul 2001, Marco Voorbraak <> 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" />

Or use the <sql> task.


View raw message