ANT: Echo will not allow "<" character.

Posted on 2004-11-19
Last Modified: 2010-10-05
How can I echo "<" character. Ant says I can't use this character. I tried to escape it using / and \, but no success.
Question by:ngujja
    LVL 13

    Accepted Solution


    replace < with &#60;
    replace < with &#62;

    for a table of all xml special characters see this url:
    LVL 3

    Expert Comment

    use :
    &lt;  for <
    &gt; for >
    LVL 13

    Expert Comment

    sorry miss tepoo:

    >> replace < with &#62;
    i mean:
    replace > with &#62;

    Author Comment

    Thanks buddy!!!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
    Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
    Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now