Samkeith
Samkeith

Reputation: 55

In ant, how to copy only typical extension file excluding other

how to copy only particular file from directory having mix of extension files. For example my directory is having .jar, .exe , .xml, .deb and I just want to copy .deb from that directory excluding all other using ant command. Any way to do that? Thanks for the help.

Upvotes: 1

Views: 879

Answers (1)

Mark O'Connor
Mark O'Connor

Reputation: 77951

<copy todir="somedir">
  <fileset>
    <fileset dir="someotherdir" includes="*.deb"/>
  </fileset>
</copy>

Upvotes: 2

Related Questions