开发者

Ant move and pattern for files' name

开发者 https://www.devze.com 2023-02-02 08:58 出处:网络
i need to move a file from dir A to dir B with ant. File\'s name can have unspecified extension such开发者_StackOverflow as logo.png, logo.gif, logo.jpg and go on.

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

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

Can you help me, please?

Regards


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>
0

精彩评论

暂无评论...
验证码 换一张
取 消