This should work:

String basedir = System.getProperty( "basedir" );

File dll = new File( basedir, "/realtivePath/toYourDll"  );


Michal


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 03, 2004 4:16 PM
> 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]

Reply via email to