This works for our project and the same properties work for all developers
maven.junit.fork=true
# we need to make the DLL available on the PATH
# we need to tack a bogus path on to the end here
# as there seems to be a maven bug that mucks up the properties otherwise
maven.junit.sysproperties=java.library.path=${maven.repo.local}/${pom.artifa
ctDirectory}/native${path.separator}${basedir}/bogus
I have a post goal of jar:install that copies the DLL to
${pom.artifactDirectory}/native
No java code needs to be changed; you could of course but the DLL into any
other place
jmp
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 04, 2004 12:16 AM
> To: [EMAIL PROTECTED]
> Subject: Setting path for tests
>
> Is there any way to set the (Windows) path to be used when
> running the Junit tests through Maven?
>
> There's a JNI dll I need to pick up, but I want to refer to
> it relative to the project I'm building (i.e. setting the
> machine wide path isn't an ideal
> solution)
>
> thanks
>
> James
>
>
> --------------------------------------------------------------
> ----------
> For more information about Barclays Capital, please visit our
> web site at http://www.barcap.com.
>
>
> Internet communications are not secure and therefore the
> Barclays Group does not accept legal responsibility for the
> contents of this message. Although the Barclays Group
> operates anti-virus programmes, it does not accept
> responsibility for any damage whatsoever that is caused by
> viruses being passed. Any views or opinions presented are
> solely those of the author and do not necessarily represent
> those of the Barclays Group. Replies to this email may be
> monitored by the Barclays Group for operational or business reasons.
>
> --------------------------------------------------------------
> ----------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]