In order to get it to work you need to build the source jars of both
client side apps and add them as a dependency to your gwt build. I
use maven so this is pretty easy but I'm unsure how to do it with
ant. Once you have this included you need to make sure that your
gwt.xml files have the code you needed listed in the source path
either via inherit or by a source path declaration.
For maven we use the following to build the source jars:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
and then list it as a dependency using:
<dependency>
<groupId>com.mycomp</groupId>
<artifactId>myartifact</artifactId>
</dependency>
<dependency>
<groupId>com.mycomp</groupId>
<artifactId>myartifact</artifactId>
<classifier>sources</classifier>
</dependency>
Hope this helps
On Oct 6, 6:19 am, newnoise <[email protected]> wrote:
> Hi all,
>
> I created two projects with GWT and Eclipse-Plugin.
> Because both projects have a completly different client-side code, but
> also completly the same server-side code, I want to combine them to
> avoid having the same code twice.
> What I did was to link the project without the server-side code to the
> one with the server side code. Eclipse isnt showing any error. But
> when I compile the project now, GWT says: "No source-code available"
> for both the XXXService.java und XXXServiceAsync.java. Adding
> com.XXX.client to the projects XXX.gwt.xml doenst help ...
>
> Can anyone tell me how to solve this issue?
>
> Thanks a lot!
> Tom
--
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.