Ant更改目录名
我想重命名以jdbc_**开头的文件夹。 因为有些脚本会生成像jdbc_210、jdbc_344这样的文件夹。 所以我想用一个名字jdbc来重命名这些文件夹Ant更改目录名,ant,scripting,Ant,Scripting,我想重命名以jdbc_**开头的文件夹。 因为有些脚本会生成像jdbc_210、jdbc_344这样的文件夹。 所以我想用一个名字jdbc来重命名这些文件夹 I am new to it, please advise and excuse my for bad tag coding. <move todir="${../sbcdomain/config/jdbc}"> <fileset dir="${../sbcdomain/config/jdbc_}"/> &
I am new to it, please advise and excuse my for bad tag coding.
<move todir="${../sbcdomain/config/jdbc}">
<fileset dir="${../sbcdomain/config/jdbc_}"/>
</move>
我是新手,请建议并原谅我的标签编码错误。
下面的
任务使用a重命名“jdbc”目录
<move todir="${out.dir}">
<fileset dir="${out.dir}"/>
<!-- Explanation of the following regular expression mapper -->
<!-- (.*) : capturing group 1 -->
<!-- \b : matches the word boundary at the start of the "jdbc*" directory name -->
<!-- jdbc_ : matches the literal characters "jdbc_" -->
<!-- \d+ : matches the digits after "jdbc_" -->
<!-- (.*) : capturing group 2 -->
<regexpmapper from="(.*)\bjdbc_\d+(.*)" to="\1jdbc\2"/>
</move>
我不完全理解。。。我必须在${out.dir}中提到的是用您想要的任何目录替换${out.dir}。仍然无法。。。我们可以讨论gmail聊天吗