Search code examples
nant

Reference containing folder of nant script?


In NANT,if I write a path, how could I , instead of writing "c:\documents and settings" etc, reference the containing folder of the nant script?

Thanks


Solution

  • You can get the current directory of the nant script by calling the project::get-base-directory() function.

    project::get-base-directory

    You can also get the current directory by calling the directory::get-current-directory function() function.

    directory::get-current-directory