开发者

Get filenames only from full path

I am using an Ant script to get the contents of a directory by means of the following:

<ac:foreach target="process-test" param="the_file" delimiter=",">
    <path>
        <fileset dir="${test.suite.url}">
            <include name="**/*.html"/>
     开发者_开发问答       <exclude name="**/cases/"/>
        </fileset>
    </path>
</ac:foreach>

This is returning the full path to the file (which is something I also need) but, is it possible to strip away the path and give me just the filename?


Isn't the Ant <basename> task the thing you are looking for?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜