title: Inherit external java source in GWT project
body: <p>I have an ENUM that is used on the server-side.
  I want to be ably to use this enum on the client side (GWT) aswell.</p>
  
  <p>This is the structure:</p>
  
  <pre><code>se.mycompany.core
  se.mycompany.core.TheEnum &lt;-- this Enum.
  
  se.mycomapny.web.gwtproject &lt;-- The GWT project.
  se.mycomapny.web.gwtproject.client
  </code></pre>
  
  <p>I have tried to add</p>
  
  <pre><code>&lt;inherits name="se.mycompany.core.TheEnum"/&gt;
  </code></pre>
  
  <p>to my gwtproject.gwt.xml file. But I get the following error message:</p>
  
  <p>[ERROR] Unable to find 'se/mycompany/core/TheEnum.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?</p>
  
  <p>I have tried to add the file TheEnum.gwt.xml to 'se/mycompany/core/' with the following context.</p>
  
  <pre><code>&lt;module&gt;
    &lt;inherits name='com.google.gwt.user.User'/&gt;
    &lt;source path="TheEnum"&gt;&lt;/source&gt;
  &lt;/module&gt; 
  </code></pre>
  
  <p>But it still complains about the same thing.</p>
  
  <p>I'm guessing I need to add the se.mycompany.core.TheEnum to the classpath in build.xml somehow, but I dont know how or where.</p>