Monday, March 25, 2024

DevMode as application server

Hi all,

With the release of GWT 2.11.0 Using DevMode as an application server is deprecated.
From the release notes:
"Using DevMode as an application server is deprecated, and may be removed or changed in a future release. Please migrate local development workflows to using a general purpose server, or a custom ServletContainerLauncher."

We are using the Devmode as an application server and want to change, to also be prepared for the future.

We are using ant as the build tool and i want to know what to set up to make development mode working.

I did try "just" starting the code server via an ant task:

<target name="demo-codeserver" description="Run Super Dev Mode for demo">

<java failonerror="true" fork="true"

classname="com.google.gwt.dev.codeserver.CodeServer">

<classpath>

<pathelement location="src"/>

<path refid="gwt.classpath"/>

</classpath>

<jvmarg value="-Xmx1024M"/>

<arg value="-bindAddress"/>

<arg value="127.0.0.1"/>

<arg value="-port"/>

<arg value="9876"/>

<arg line="-src"/>

<arg value="${rootDir}\GWT\src"/>

<arg line="-logLevel"/>

<arg value="DEBUG"/>

<arg line="-style"/>

<arg value="PRETTY"/>

<arg value="com.sweet.demo.webclient"/>

</java>

</target>


The ant task starts and compiles the code, but when opening the url, it keeps recompiling. part of the log:


[java] GET /recompile-requester/demo

[java] Constructing StandardLinkerContext

[java] GET /recompile/demo

[java] Job com.sweet.demo.webclient_1_192

[java] job's progress set to WAITING: com.sweet.demo.webclient_1_192

[java] added job to queue

[java] starting job: com.foxboro.foxnl.base.demo.webclient_1_192

[java] job's progress set to COMPILING: com.sweet.demo.webclient_1_192

[java] job's progress set to COMPILING: com.sweet.demo.webclient_1_192

[java] Constructing StandardLinkerContext

[java] binding: user.agent=safari

[java] skipped compile because no input files have changed

[java] 0.187s total -- Compile completed

[java] job's progress set to SERVING: com.sweet.demo.webclient_1_192

[java] job's progress set to GONE: com.sweet.demo.webclient_1_191

[java] GET /recompile-requester/demo


Am i missing a parameter or is do i have the wrong approach?


--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/39245adc-46e2-441b-92a8-113d1116b79en%40googlegroups.com.

No comments:

Post a Comment