Echo target description in Ant

Posted by kunjaan on Stack Overflow See other posts from Stack Overflow or by kunjaan
Published on 2010-05-02T19:15:22Z Indexed on 2010/05/02 19:17 UTC
Read the original article Hit count: 209

Filed under:
<target name="compile" description="Compile the File">
        <echo>Compile the File </echo>
        <mkdir dir="${compilation-dir}" />
        <javac srcdir="." classpath="another2" destdir="${compilation-dir}" />
    </target>

I want to echo the description of the target. Is there a better way of doing this other than duplicating it?

© Stack Overflow or respective owner

Related posts about ant