2

I have an ANTScript like:

<fileset dir="${sqlDirectory}" >
    <include name="**/*.sql"/>
    <exclude name="**/back_out/**"/>
</fileset>

I am trying to exclude all sub-folders in the directory. The above code excludes only back_out subfolder.

Is it possible to exclude any sub-folders inside the directory?

kenorb
  • 155,785
  • 88
  • 678
  • 743
useranon
  • 29,318
  • 31
  • 98
  • 146
  • Please don't put solutions in your questions. If you've found an answer, post it *as an answer* below, so you can mark it accepted. – user229044 Nov 28 '16 at 03:29

1 Answers1

1

Here is the solution which I have found:

<fileset dir="${sqlDirectory}" >
    <include name="**/*.sql"/>
    <exclude name="*/**/*" />
</fileset>
kenorb
  • 155,785
  • 88
  • 678
  • 743
useranon
  • 29,318
  • 31
  • 98
  • 146