Hi Michail, I've confirmed that this is a bug in 1.3: a directory browse dialog *should*be appearing when you launch, to ask for a WAR directory. However, it appears that this only happens when you create a new launch configuration from within the Run/Debug Configurations dialog. If you delete the existing launch configuration and then right-click the project and select Run As > Web Application, you should see the WAR directory prompt as expected (at least the first time... after that the -war argument should be persisted).
Also, regarding the use of relative WAR directory paths: the lastWarOutDir setting is only used for convenience as an initial path when we display a directory browse dialog for selecting the WAR directory. If you want to specify the WAR directory argument in a launch configuration as a workspace-relative path, you should be able to use something like this: -war ${workspace_loc}/path/to/war However*,* I say *should* be able to, because unfortunately there is another bug in 1.3 that prevents that variable from being resolved. The good news is that* **we will release a fix tomorrow to resolve both of these bugs*, as well as the auto-escaping bug on Windows ( http://code.google.com/p/google-web-toolkit/issues/detail?id=4762). Keith On Wed, Mar 17, 2010 at 6:53 AM, Michail Prusakov < michail.prusa...@gmail.com> wrote: > I've updated the plugin and while trying out the new stuff noticed > that the plugin seems to ignore the web directory name. > > Here is what I've done: (for the record I am using eclipse galileo > SR2) > 1) created a wtp project with a default content directory (WebContent) > 2) checked "Use Google Web Toolkit" > 3) checked "This Project has a WAR directory", entered the name and > unchecked "Launch and deploy from this directory" > 4) saved the configuration and since I am using tomcat 6 as container, > changed the order of the gwt library as it is written here: > > http://groups.google.com/group/google-web-toolkit/browse_thread/thread/98add5c7f6317fd5 > (BTW it would be great if the FAQ would mention it) > 5) created a module, html page, entry class (all using wizards) > 6) ran the project in tomcat > 7) created a debug configuration (all according to > http://code.google.com/eclipse/docs/faq.html#gwt_in_eclipse_for_java_ee) > > Now the funny thing is, the manual said that the plugin would ask for > a destination, but it did not. Furthermore it created a war directory > and as a result the project did not work. I've then ran the gwt > compiler which did ask for the destination and compiled my project. > After that everything worked perfectly. > > Even though the gwt compiler added a line lastWarOutDir=<correct path > here> to the com.google.gwt.eclipse.core.prefs file in > project's .settings directory, every time I lunch the project for some > reason the plugin still creates the war directory. > > I've created another similar project. This time I've created a debug > configuration with "Run built-in server" checked. The plugin did ask > for the destination but still created the war directory. > > BTW would it be possible to allow lastWarOutDir to accept relative > paths (relative to workspace that is)? We usually put the settings to > source control so that only one person would have to go through all > the setup process. > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.