Defining modules in GWT with non-default source directories

Let's say that I want to define the “Couple” module in com.mycompany.common, so the source is in com.mycompany.common (and not com.mycompany.common.client). How can I do it? As an alternative, let me say that I have the flexibility to define the “Couple” module in com.mycompany, and if you have a source in com.mycompany.common.

+3
source share
1 answer

Thanks to a quick Google search, I found the answer myself. You can add the source path tag to the module XML file to determine the source directory, rather than leaving it as the default client. For example, Pair.gwt.xml would look something like this:

<module>
  ...
  <source path="."/>
  ...
</module>

... , gwt.xml , .

" :./". ?

0

Source: https://habr.com/ru/post/1711672/


All Articles