ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Magnus ?or Torfason <mag...@handtolvur.is>
Subject Is there a way for me to access the basedir attribute from my JUnit Tests
Date Mon, 28 Jan 2002 15:22:47 GMT
I have a unit test where I need access to the directory specified by the
${basedir}property in build.xml.  Is there any way I can access that
property from within my JUnit tests.

I realize that I can achieve this by using the dir property of the junit
task:
<junit fork="yes" dir="${basedir}">
but I would rather not, since I just getting access to the string, and
forking the JUnit tests causes them to take triple the time.

Any thoughts?


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message