将 ant 文件集回显到屏幕以进行调试 [英] Echoing out ant fileset to screen for Debugging
本文介绍了将 ant 文件集回显到屏幕以进行调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有这个:
<ivy:buildlist reference="build-path">
<fileset dir="${root.dir}">
<include name="*/build.xml" />
<include name="controllers/*/build.xml" />
</fileset>
</ivy:buildlist>
<subant buildpathref="build-path">
<target name="jar.all" />
<target name="publish-local" />
</subant>
我想回显构建路径"参考中的所有内容(用于调试某些内容).
I want to echo out everything that is in the "build-path" reference (for debugging some things).
我已经尝试过:
<echo>${build-path}</echo>
但它只是回应那个确切的文本${build-path}"
but it just echos that exact text "${build-path}"
推荐答案
您可以使用 记录(老实说,它在某处......)toString
helper:
You can use the documented (honest, it's in there somewhere...) toString
helper:
<echo message="My build-path is ${toString:build-path}" />
这篇关于将 ant 文件集回显到屏幕以进行调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文