ant脚本如何使用正则表达式获取某个根目录的名字而非根目录的路

来源:互联网 发布:js同步请求 编辑:程序博客网 时间:2024/06/14 07:37

<taskdef resource="net/sf/antcontrib/antlib.xml"/>

            <propertyregex property="result"input="D:\apache-ant-1.9.6-bin\lib" regexp="[^\\]+$"select="\0" casesensitive="false"/>

            <target name="ntt">

                        <echo>${result}</echo>

            </target>

0 0
原创粉丝点击