tags:

views:

109

answers:

1

Hi

I am using an ant script to get the contents of a directory using 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?

Cheers

+1  A: 

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

Grzegorz Oledzki
Thanks for this. Im new to Ant so this is exceptionally helpful. Thank you very much.