0
votes

As I know, GWT needs that code that will be used on client side to be on the XXX.client package. I also know that is possible to configure this path, allowing other client-side code to be outside this package.

However, I can connect this to solve my problem: I'm writing a library that automate some code I'll be using many times over more than one application. This library has an Exception class that is used in the client-side (RCP methods throws it). How can I inform GWT that this class need to be converted to translatable code?

1

1 Answers

1
votes

You need to create a module definition file for the library you want to share between projects. In the module file you can specify multiple <source path="/path/to/source/" /> elements. The Exception class you want to include must have its source code somewhere in one of those paths.

Once you've created the module for the library, each project needs to "inherit" it with an <inherits name="com.you.libraryname" /> element in its module definition file.

You'll have to google for more specifics, but that's the gist of it!