You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Piers Dunleavy <pd...@ign.com> on 2003/06/25 21:45:44 UTC

escaping '&' in waitfor:http

I am trying to use the waitfor/http tasks with a URL that contains a
parameter string.

 <waitfor maxwait="10" maxwaitunit="second" checkevery="2"
checkeveryunit="second" timeoutproperty="disablehealth">
   <http
url="http://${machine}/servlet/SimpleServlet?param1=foo&param2=bar"/>
  </waitfor>

The build fails with this message

BUILD FAILED
file:D:/jsrv/Mediaviewer/build.xml:84: The reference to entity "param2" must
end with the ';' delimiter.

It looks like ant has a problem with the '&' character but I haven't been
able to find any documentation about how to escape this character:

Does anyone know how I can send parameters to a URL using this task?

Thanks,
Piers


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