title: GWT - including source files outside module's package hierarchy
body: <p>I have a GWT project in eclipse with the following structure for the GWT module</p>
  
  <pre><code>com.foo.gwt -&gt; Dashboard.gwt.xml
  com.foo.gwt.client
  com.foo.gwt.server
  </code></pre>
  
  <p>I have different packages <code>com.bar.baz1</code>, <code>com.bar.baz2</code>, etc. whose contents I want to include in client side code. All the files are GWT JAVA->JS conversion compatible.</p>
  
  <p>The problem is that the &lt;source&gt; tag in Dashboard.gwt.xml, treats the path as relative to the directory of <code>Dashboard.gwt.xml</code>. So I cannot reference anything outside <code>com.foo.gwt</code> hierarchy.</p>
  
  <p>So I created a new module <code>MyNewModule.gwt.xml</code> in <code>com.bar</code> and included <code>baz1</code> and <code>baz2</code> sub packages using relative paths in  tag. Finally I made Dashboard.gwt.xml to inherit the new module.</p>
  
  <p>This works fine when I compile the Dashboard module but fails when I compile MyNewModule.
  That's because some classes in MyNewModule reference classes of Dashboard module.</p>
  
  <p>I tried inheriting Dashboard module in MyNewModule. This creates a circular reference, but GWT doesn't complain about it. Everything works but I am not comfortable with the circular reference. I don't need MyNewModule, all I need is a way to  include code from packages outside Dashboard module's hierarchy.</p>
  
  <p>I am wondering why GWT does not allow absolute source paths. </p>
  
  <p>Am I missing something here?</p>