ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rhino" <rhi...@sympatico.ca>
Subject Re: Escape characters in Ant 1.6.1/Sshexec?
Date Mon, 18 Oct 2004 22:18:35 GMT
Thank you! I was sure it was something simple but I forgot about &lt; and
&gt;. (I was using \< and \> but that wasn't working ;-)

I'll give that a try and post again if it doesn't work.

Thanks again,

Rhino

----- Original Message ----- 
From: "Anderson, Kajsa (TLR Corp)" <Kajsa.Anderson@thomson.com>
To: "Ant Users List" <user@ant.apache.org>
Sent: Monday, October 18, 2004 5:55 PM
Subject: RE: Escape characters in Ant 1.6.1/Sshexec?


Have you tried &lt; and &gt;?

-----Original Message-----
From: Rhino [mailto:rhino1@sympatico.ca]
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.

Rhino
---
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message