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?
精彩评论