Is it okay to run GWT wrapper, use -noserver when compiling?

I would like to start the GWT shell (nice little google browser popup) when "testing" and clicking Compile / View on the tool, compile the program to a different directory and use -noserver to test it on my IIS server.

Problem:

I haven't edited the normal shell script, so it works fine. The revisions I make are reviewed for refreshment. However, compiling / viewing is shooting me on a mini Tomcat server instead of my directory. DOES compilation seems to be in progress (since I can go directly to that directory and get updates), but compilation / browsing does not shunt me there.

Here is the compilation script I got right now:

@java -Xmx256M -noserver -port 80 -cp "%~dp0\src;%~dp0\bin;C:/dev/gwt-windows-1.5.3/gwt-user.jar;C:/dev/gwt-windows-1.5.3/gwt-dev-windows.jar" com.google.gwt.dev.GWTCompiler -out c:/dev/Practice /Practice/Practice.html

      

It is clear that the area I would like to go in is " http: //localhost/Practice/Practice.html " (IIS server), but it jumps to " http: // localhost: 8888 / practice.Practice / Practice. html "(Tomcat server).

Ideas?

(PS Running Eclipse for editor, Run / Debug config arguments:

practice.Practice/Practice.html

      

and what is he)

+1


source to share


1 answer


You can create an Eclipse launch profile for the GWTCompiler class. One of the arguments you pass is the compilation path, so you can run the compilation from Eclipse and write the files directly to the IIS folder if you specified one. After the compilation is complete, you can use the Hosted Mode instance already open and just enter the path http: //localhost/Practice/Practice.html and it will work.

The Hosted Mode browser can be specified on any server without even running it with -noserver, and if you get domain logout warnings, you can add the -whiteList argument to the Hosted Mode startup profile. Security warnings will give you an example of a whiteList argument.



Try running GWTCompiler and GWTShell with no arguments for capabilities. I would be more detailed, but I don't have a developer environment right now.

+1


source







All Articles