Which Ant property contains the CWD when the ant script is run?
Posted
by Chris R
on Stack Overflow
See other posts from Stack Overflow
or by Chris R
Published on 2010-06-03T14:46:56Z
Indexed on
2010/06/03
14:54 UTC
Read the original article
Hit count: 367
ant
I don't want to get the basedir -- that appears to contain the build.xml script -- I want the CWD of the call to ant itself.
Basically, I want to do this:
$ cd /home/chrisr/projects/some_project
$ ant -f ../../tools/ant-build-rules/library.xml build-library
At this point, I need two things:
- The path to ant-build-rules in absolute form; this is currently found in the
basedir
property, so I'm set there. - The path of some_project, in absolute form. This is what I don't know how to get.
Which property contains this information?
© Stack Overflow or respective owner