On Mon, 28 Jan 2002, <[EMAIL PROTECTED]> wrote:
> 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.
Add a <sysproperty> element to your <junit> tasks, something like
<sysproperty name="basedir" value="${basedir}" />
then it will be set as a system property and you can retrieve it via
System.getProperty("basedir").
Stefan
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>