ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ciramella, EJ" <ECirame...@emptoris.com>
Subject RE: escaping '&'
Date Wed, 25 Jun 2003 20:07:11 GMT
Try &amp; 

-----Original Message-----
From: Piers Dunleavy [mailto:egg@ign.com]
Sent: Wednesday, June 25, 2003 4:06 PM
To: Ant Users List
Subject: escaping '&'


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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message