ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Jaffe" <>
Subject Ant not recognizing entity
Date Mon, 21 May 2001 21:43:46 GMT
I am creating an HTML page in my build file, and writing a version string
into it. I got an error when I first executed this code:

  <target name="base" depends="init">
  <!-- Create version file HTML template -->
  <echo file="ps/html/version.tmpl" >
&lt;title&gt;Build Version&lt;/title&gt;
&lt;meta http-equiv="Content-Type" content="text/html;

&lt;body topmargin="0" marginheight="0" bgcolor="#FFFFFF" text="#000000"&gt;
Build @version@
&lt;font size=-2 face=arial&gt;Copyright &copy; 2001 Eturn Communications,
Inc. &lt;/font&gt;
  <!-- Insert version info into HTML template -->
  <replace file="ps/html/version.tmpl" token="@version@" value="${vers}
&lt;br&gt;built on ${DSTAMP} at ${TSTAMP}"/>
  <touch file="${vers}" />
  <move file="ps/html/version.tmpl" tofile="ps/html/version.html" />

At the line containing "&copy;" Ant complained about an unknown entity. Any
thoughts on this? This should carry over from HTML. It works if I use "(c)"
instead of &copy; but the page won't match everything else that has the
&copy; thing in it.


View raw message