How do I code into my build file a target that prints a list of sourcefiles in ANT

有些话、适合烂在心里 提交于 2019-12-13 09:46:48

问题


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.


回答1:


Try

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


来源:https://stackoverflow.com/questions/30334813/how-do-i-code-into-my-build-file-a-target-that-prints-a-list-of-sourcefiles-in-a

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!