Premier
Premier

Reputation: 4228

Ant move and pattern for files' name

i need to move a file from dir A to dir B with ant.

File's name can have unspecified extension such as logo.png, logo.gif, logo.jpg and go on.

Can you help me, please?

Regards

Upvotes: 0

Views: 2261

Answers (1)

Raghuram
Raghuram

Reputation: 52635

This snippet moves all files with name starting with logo. from A to B. Perhaps you are looking for something similar?

  <move todir="B">
    <fileset dir="A">
      <include name="**/logo.*"/>
    </fileset>
  </move>

Upvotes: 2

Related Questions