Software Build and Release Specialist

Latest Entries
Feb 11

How to Escape {“‘<>&} Characters in ANT

How exactly do you escape special characters from ANT?  Say if you need to add extra ” quotation characters within a property which already has a set of quotes?

Here’s how to do it — use XML Character entity references:

For > use &gt;

For < use  &lt;

For use &quot;

For & use &amp;

For use &apos;
Any other characters you need?  Drop me a line..

Bookmark It:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • NewsVine
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Yahoo! Buzz
  • Live
  • SphereIt

One Response to “How to Escape {“‘<>&} Characters in ANT”

  1. Tolga Aglot said:

    Thanx for great article.

Leave a Reply


Related Topics:

+  Importing a new Project in Perforce