开发者

Echo target description in Ant

<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 e开发者_JAVA技巧cho the description of the target. Is there a better way of doing this other than duplicating it?


I guess this is not a perfect solution, but at least you avoid duplicate descriptions.

<property name="testing.desc" value="this is the desc" />

<target name="testing" description="${testing.desc}">
    <echo message="${testing.desc}" />
</target>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜