how can i print A & B in echo message within Ant script
<target name="three"&开发者_JS百科gt;
<echo message="A & B"/>
</target>
whenever i m running this code it shows the error like The entity name must immediately follow the '&' in the entity reference.
how can i print A & B
pls help me out guys
Use &
instead of &
Ant scripts must be valid XML, so the ampersand needs XML-escaping:
<target name="three">
<echo message="A & B"/>
</target>
精彩评论