Java Mailing List Archive

http://www.gg3721.com/

Home » user.groovy »

[groovy-user] GroovyConsole: "properties" file location?

Fred Janon

2008-08-11

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi,

I am using GroovyConsole to test a program that uses a bundle:

def resource
try
{
resource = ResourceBundle.getBundle("weekdays")
println "found resource bundle"
}
catch (MissingResourceException mre)
{
println "Cannot find resource"
}

I created a couple of "properties" files ("weekdays.properties" and "weekdays_en.properties") but I can't figure out in which directory to put them for the GroovyConsole classloader to find them. I always get the "Cannot find resource" message.

Thanks

Fred

©2008 gg3721.com - Jax Systems, LLC, U.S.A.