Use a separate ressource directory with GWT Designer (Maven)

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Use a separate ressource directory with GWT Designer (Maven)

Postby bultobulto » Sun Jun 15, 2008 7:28 am

Hi
I want use a different folder for my java files and for ressources (as maven2 project) :

  • src/main/java
      fr.xavier.proto.num4.gwt.client
        Proto4.java
  • src/main/resources
      fr.xavier.proto.num4.gwt
        Proto4.gwt.xml
        public
          Proto4.css
          Proto4.html

Everything seems ok (Designer, css editor, hosted mode...) except when I want to create a GWT Remote service with the GWT Designer wizard, I have this error message :
Package fr.xavier.proto.num4.gwt.client is not a client package.


It seems it's because Proto4.gwt.xml is not in the src/main/java hierarchy
How can I use GWT remote service wizard with this maven2 project structure ?
bultobulto
 
Posts: 1
Joined: Sun Jun 15, 2008 6:59 am

Re: Use a separate ressource directory with GWT Designer (Maven)

Postby Eric Clayberg » Mon Jun 16, 2008 4:06 am

bultobulto wrote:It seems it's because Proto4.gwt.xml is not in the src/main/java hierarchy

Correct.

bultobulto wrote:How can I use GWT remote service wizard with this maven2 project structure ?

You would have to change it back to the project sttructure created by the GWT project wizard and have the Proto.gwt.xml file in the same source folder as the client package.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 3 guests