ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piers Dunleavy" <pdani...@ign.com>
Subject escaping '&' in waitfor:http
Date Wed, 25 Jun 2003 19:45:44 GMT
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


Mime
View raw message