我如何code到我的构建文件,打印在ANT来源档案列表的目标 [英] How do I code into my build file a target that prints a list of sourcefiles in ANT

查看:402
本文介绍了我如何code到我的构建文件,打印在ANT来源档案列表的目标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何code到编译文件中的目标,使人们查看我的源文件的名称。我是新来的蚂蚁。

How do I code into my build file a target that allows one view the names of my source files. I am new to ant.

推荐答案

尝试

  <target name="print-src">
    <apply executable="echo">
      <fileset dir="src" includes="**/*.java"/>
    </apply>
  </target>

这篇关于我如何code到我的构建文件,打印在ANT来源档案列表的目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆