Hi!

I had a glance at the same thing today as we are migration to Maven from
Ant.
Decided that putting the files under resources and using getResource was the
most convenient,
but I am a Maven newbie and there might be easier ways?


        URL url = Class.getResource("/" + filename);

        String absoluteFilename = url.getFile();
        
Regards,
Jimisola
--
View this message in context: 
http://www.nabble.com/Referencing-Files-from-a-Unit-Test-t1737229.html#a4760075
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to