Hi all,
I have a GWT module in my maven project which structure is as follows:
/project-root
|
pom.xml
|
/gwt-module {<< uses general-constants}
| |
| pom.xml
| ...
|
/other-module {<< uses general-constants as well}
| |
| pom.xml
| ...
|
/general-constants {independent from others, but located in the
same parent project layout}
|
pom.xml
/src/main/java/pathomitted/
|
Constants1.java
Constants2.java
ConstantsX.java looks as follows:
public final class ConstantsX {
public final static int CONSTANT1 = 19;
public final static String CONSTANT2 = "^\\d{3,4}$";
// ...
private ConstantsX() {} // ctor is hidden
}
Basically general-constants is a module that defines some reusable
integer and string constants that I want to use in the GWT module and
some other non-GWT modules.
The question is how to make files in the module general-constants
available to GWT module by including external java files using
relative pathname to the another dir, like this one: ../general-
constants/src/main/java/pathomitted/*?
The solution obviously would look like a hack but I still think it is
better than code duplication.
And I wouldn't like to put any GWT-related stuff to the general-
constants module which clearly should be independent from the others.
P.S.: I didn't find the clear yes or no answer on Google, so I'm
asking here.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.