You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Maczka Michal <mi...@imtf.ch> on 2004/06/03 16:13:51 UTC
RE: Setting path for tests
This should work:
String basedir = System.getProperty( "basedir" );
File dll = new File( basedir, "/realtivePath/toYourDll" );
Michal
> -----Original Message-----
> From: James.Shute@barclayscapital.com
> [mailto:James.Shute@barclayscapital.com]
> Sent: Thursday, June 03, 2004 4:16 PM
> To: users@maven.apache.org
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org