ant fileset dir exclude certain directory

后端 未结 1 1670
悲哀的现实
悲哀的现实 2021-02-07 02:25

There are many questions on this topic but none of the answers are solving my problem. Starting this thread again to get fresh input.

I tried two different approaches f

相关标签:
1条回答
  • 2021-02-07 03:04

    I think it should probably be:

    <copy todir="${dir.classes}">
    <fileset dir="${dir.src}" >
      <exclude name="**/*.java"/>
      <exclude name="**/A-dir/**/B-dir/**"/>
    </fileset>
    </copy>
    

    Note the **/A-dir/** instead of A-dir/**.

    0 讨论(0)
提交回复
热议问题