如何重新命名N档与ANT? (批处理作业) [英] How to rename n files with ANT? (Batch Job)

查看:122
本文介绍了如何重新命名N档与ANT? (批处理作业)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何与ANT重命名文件1..N?我愿与 xxxx.default.properties 的文件重命名为 xxxx.local.properties

How can I rename 1..n file with ANT? I would like to rename any files with xxxx.default.properties to xxxx.local.properties.

感谢您。

推荐答案

使用移动任务你可以做这样的事情:

Using the move task you could do something like this:

  <move todir="my/src/dir" includeemptydirs="false">
    <fileset dir="my/src/dir"/>
    <mapper type="glob" from="*.default.properties" to="*.local.properties"/>
  </move>

试试看吧,让我们知道。

Give it a try and let us know.

这篇关于如何重新命名N档与ANT? (批处理作业)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆