Hi Cordenier,

Thanks, root path works.  there is a 'resources' under src/main, but when
package with maven, there is no resources in the final jar, log4j.properties
and m2.properites all go to the root. 

Angelo


Cordenier Christophe wrote:
> 
> Hello,
> 
> I think it is always preferable to refer to the root pat : "/"
> 
> A good way to access root class path may be something like this :
> 
> getClass().getResource("/resources/m2.properties"), there is also a
> getResourceAsStream("/resources/m2.properties") method to get and input
> stream from classpath. Note that in this case, you must have a "resources"
> directory under your classpath.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/t5%3A-properties-file-location-tp16393437p16395303.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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

Reply via email to