Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ant更改目录名_Ant_Scripting - Fatal编程技术网

Ant更改目录名

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_}"/> &

我想重命名以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_}"/>
</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聊天吗