You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Jason van Zyl <jv...@zenplex.com> on 2002/03/29 15:22:49 UTC

Re: [maven] Test cases and external files

On Fri, 2002-03-29 at 10:30, dion@multitask.com.au wrote:
> What's the recommendation for test cases locating external files with 
> maven?
> 
> One of my test cases is failing because it's expecting to be able to find 
> a file relative to the build file using:
>         new File("relative path goes here")
> 
> There is obviously a different working directory in use calling 
> maven:test. 
> 
> I could use Class.Loader's getResource method, but I'm sure you guys would 
> have done this one before, and have a general recommendation

I believe Jeff had a method of setting a <sysproperty> with the JUnit
task but I'm not sure where the example is at the moment. I will look
and if Jeff sees this he can answer.

> --
> dIon Gillard, Multitask Consulting
> Work:      http://www.multitask.com.au
> Developers: http://adslgateway.multitask.com.au/developers
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
-- 
jvz.

Jason van Zyl
jvanzyl@apache.org

http://tambora.zenplex.org


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>