<echo message="${PROPERTY_NAME}"/>
ant 스크립트에로드 된 등록 정보는 echo 태그와 message 매개 변수를 사용하여 표시 할 수 있습니다.
이 예에서는 테스트 작업을 만듭니다. tmp.prop 특성에는 "This is a test"값이 있습니다. 결과의 메시지는 특성의 내용과 함께 쓰여집니다.
<project name="MyProject" default="test" basedir=".">
<target name="test">
<!-- Create a property -->
<property name="tmp.prop" value="This is a test"/>
<!-- Show the property -->
<echo message="Content of tmp.prop = ${tmp.prop}"/>
</target>
</project>
$ ant
Buildfile: build.xml
test:
[echo] Content of tmp.prop = This is a test
BUILD SUCCESSFUL
Total time: 0 seconds