比方说,我有这样的目录结构:蚂蚁:重命名同名的子目录
- 动物/狗/细节
- 动物/ CAT /细节
- 动物/青蛙/细节
- 动物/马/细节
使用蚂蚁,我想重新命名animals
下的所有子目录称为details
现在被命名为new
。所以结果会是这样:
- 动物/狗/新
- 动物/ CAT /新
- 动物/青蛙/新
- 动物/马/新
我我试过这样的事情:
<move tofile="new">
<path id="directories.to.rename">
<dirset dir="animals">
<include name="**/details"/>
</dirset>
</path>
</move>
但是得到这个错误:
Cannot concatenate multiple files into a single file.
可能重复http://stackoverflow.com/questions/1041213/how-to-rename-a-folder-using-ant –
我不认为这涉及到矿山作为一个不与多个子处理-directories。 – digiarnie