<dirname property="antfile.dir" file="${ant.file}"/>
<dirname property="foo.dirname" file="foo.txt"/>