...
The first thing to point out is the path="model". The GWT compiler will know to include all source file in jar file under 'org/sagebionetworks/model' by combining the path of the gwt.xml file with the path property in the file! I am not sure why they made this so complicated but this seems to be the only combination of file path and property path that produces a working module. If there is a simpler way to do this then please update this document.
Inheriting the GWT Module
Once our GWT module is setup correct, we can now add it as a dependency in the in another maven project. In our above example we want to use the lib-auto-generated module called 'synapseDTOs' in the portal. This is done by editing the protal's gwt.xml file:
Code Block |
---|
/portal/src/main/resources/org/sagebionetworks/web/Portal.gwt.xml |
We added the following line:
Code Block |
---|
<?xml version="1.0" encoding="UTF-8"?>
<module rename-to='Portal'>
...
<inherits name="org.sagebionetworks.repo.synpaseDTOs"/>
...
</module> |
The auto-generated POJOs are now available to the portal client-side code!