On Saturday, December 11, 2010 7:42:17 PM UTC+1, PeteUK wrote:Thomas,

I did stumble upon the FAQ a long time ago and forgot about it (when
you're a newbie and trying to figure out what's what, you get thrown
down many tangents) so thanks for that. I was wanting to use the
built-in server with the Web Application launch configuration. From
what I gather from that FAQ, it suggests disabling the built-in server
and using your "configured WTP server adapter". Trouble is, I don't
know what that really means or why I should be interested in it -
especially when the Google Plugin for Eclipse has a built-in server???



In that case, you'd follow rules for the "I don't use Java EE" case.
I'm having trouble connecting all the dots together...

src/main/webapp is where I configure static content, web.xml, etc. This
is *not* where the application is launched from however.
target/www is where the application is launched from which means files
from src/main/webapp needs to be copied here (by Maven).
The Web Application launch configuration has a server which knows the
war location with the -war parameter and is set to target/www.
The run button fires off the launch configuration but there's no way
for Maven to copy the files from src/main/webapp to target/www.



You'd have to call "mvn package" (or a least "mvn war:exploded", and I
recommend using -Dgwt.compile.skip=true to speed things up) to do that
(and copy dependencies to target/www/WEB-INF/lib), and repeat each time
you change a dependency or a file in src/main/webapp.
Eclipse should already output *.class in the target/www/WEB-INF/classes
folder so you don't need to do anything re. server-side classes (and
client-side classes are taken from the classpath of the DevMode, which
is yet another thing).

-- 
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.

Reply via email to