next up previous contents index
Next: Ear Up: Dirname Previous: Parameters   Contents   Index

Examples

    
  <dirname property="antfile.dir" file="${ant.file}"/>
will set antfile.dir to the directory path for ${ant.file}.
    
  <dirname property="foo.dirname" file="foo.txt"/>
will set foo.dirname to the project's basedir.



Andrew Marlow 2003-07-08