ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Kajsa \(TLR Corp\)" <>
Subject RE: Escape characters in Ant 1.6.1/Sshexec?
Date Mon, 18 Oct 2004 21:55:34 GMT
Have you tried &lt; and &gt;?

-----Original Message-----
From: Rhino []
Sent: Monday, October 18, 2004 4:53 PM
To: ant-user
Subject: Escape characters in Ant 1.6.1/Sshexec?

I need to execute an operating system command on a Linux box via the (optional) sshexec task
in Ant 1.6.1. My command contains less-than and greater-than signs so Ant is objecting to
that syntax. How can I escape those characters so that Ant/sshexec accepts my command?

This is my task:

<sshexec host="${server.hostname}" username="${tonge-userid}" password="${tonge-password}"
trust="true" command="mysql -u ${mysql-userid} -p ${mysql-password} < Load_Dougs_Movies.sql
> Load_Dougs_Movies.out"/>
It appears that the less-than before 'Load_Dougs_Movies.sql' and the greater-than after it
are being taken as XML brackets. I feel sure there is some simple way to escape the less-than
or greater-than but I don't know what that is.

rhino1 AT sympatico DOT ca
"There are two ways of constructing a software design. One way is to make it so simple that
there are obviously no deficiencies. And the other way is to make it so complicated that there
are no obvious deficiencies." - C.A.R. Hoare

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message