Sunburned Surveyor wrote:

Hi,

> Step #4 of the wiki instructions on using the I18N class states that
> "Make sure when you build your jar file the whole directory tree under
> src/main/resources is copied to the jar file."
> 
> Is this absolutely required? I've got a JAR file with the following
> two top-level folders:
> 
> net
> resources
> 
> My java code is in the "folder" while my properties file for I18N is
> in the resources folder. The complete structure looks something like
> this:
> 
> net/sourceforge/surveyos/openjump/plugins/superselecttool/main
> resources/net/sourceforge/surveyos/openjump/plugins/superselecttool/main

Javas class loading mechanism probably tries to find
net/sourceforge/surveyos/openjump/plugins/superselecttool/main/...properties,
and not resources/net/..., ie., the folder "resources" will be interpreted as a
top level Java package.

> Can I get the I18N class to work with this structure, or do I the
> "net" and "resources" folders have to be in a "src/main" folder?

I'm not sure about the internals of the I18N class, but I strongly suppose it
will be best to have the resources copied by some mechanism (ant?).

Best regards, Andreas
-- 
l a t / l o n  GmbH
Aennchenstrasse 19           53177 Bonn, Germany
phone ++49 +228 18496-11     fax ++49 +228 1849629
http://www.lat-lon.de        http://www.deegree.org

Attachment: signature.asc
Description: Digital signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to