2.8.0-beta1 SDM not always detecting changes properly

328 views
Skip to first unread message

stuckagain

unread,
Dec 22, 2015, 2:38:12 AM12/22/15
to GWT Contributors
I have been using 2.8.0-beta1 in combination with Thomas Broyer's maven plugin for a week now.

When I run the codeserver and make changes a reload of the browser does not always include the last changes that I made.
At the start it seems to work fine but then after a few code changes and refreshes it stops working.

If I just stop de codeserver and restart it then suddenly the changes are available.



Brandon Donnelson

unread,
Dec 28, 2015, 11:15:00 AM12/28/15
to GWT Contributors
Could you share the gwt-maven-plugin configuration? 

David

unread,
Jan 4, 2016, 8:37:39 AM1/4/16
to google-web-tool...@googlegroups.com
This is the maven config from the root maven project:
<build>
        <plugins>
            <plugin>
                <groupId>net.ltgt.gwt.maven</groupId>
                <artifactId>gwt-maven-plugin</artifactId>
                <inherited>false</inherited>
                <configuration>
                    <launcherDir>${project.build.directory}/gwt/launcherDir</launcherDir>
                    <jvmArgs>
                        <jvmArg>-Xms512m</jvmArg>
                        <jvmArg>-Xmx2048m</jvmArg>
                    </jvmArgs>
                    <logLevel>INFO</logLevel>
                </configuration>
            </plugin>
        </plugins>
        <pluginManagement>
            <plugins>
                <plugin>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>3.3</version>
                    <configuration>
                        <source>1.8</source>
                        <target>1.8</target>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>net.ltgt.gwt.maven</groupId>
                    <artifactId>gwt-maven-plugin</artifactId>
                    <version>1.0-rc-4</version>
                    <extensions>true</extensions>
                    <configuration>
                        <sourceLevel>1.7</sourceLevel>
                        <failOnError>true</failOnError>
                    </configuration>
                </plugin>
                <plugin>
                    <artifactId>maven-source-plugin</artifactId>
                    <version>2.4</version>
                    <executions>
                        <execution>
                            <id>attach-sources</id>
                            <phase>package</phase>
                            <goals>
                                <goal>jar-no-fork</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <groupId>org.apache.tomcat.maven</groupId>
                    <artifactId>tomcat7-maven-plugin</artifactId>
                    <version>2.2</version>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>

The editor-client projects has the following plugin config:
    <build>
        <plugins>
            <plugin>
                <groupId>net.ltgt.gwt.maven</groupId>
                <artifactId>gwt-maven-plugin</artifactId>
                <configuration>
                    <moduleName>com.acme.cloud.ui.demo.Demo</moduleName>
                    <moduleShortName>Demo</moduleShortName>
                    <skipModule>true</skipModule>
                    <jvmArgs>
                        <jvmArg>-Xms512m</jvmArg>
                        <jvmArg>-Xmx2048m</jvmArg>
                    </jvmArgs>
                </configuration>
            </plugin>
        </plugins>
    </build>

--
You received this message because you are subscribed to the Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/5a556906-6f82-4bfa-a255-625057c6d0ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jens

unread,
Jan 4, 2016, 9:00:33 AM1/4/16
to GWT Contributors
On Mac OS we use the system property -Dgwt.watchFileChanges=false when starting SDM. With the property set to false I think it does a file scan instead of using some watch service. Somehow watching file changes did not work well on Mac OS.

Not sure if that property still exists in GWT 2.8 beta as we use some GWT snapshot build thats in between 2.7 and 2.8 beta releases.

-- J.

Jens

unread,
Jan 4, 2016, 9:15:25 AM1/4/16
to GWT Contributors

Not sure if that property still exists in GWT 2.8 beta as we use some GWT snapshot build thats in between 2.7 and 2.8 beta releases.

stuckagain

unread,
Jan 5, 2016, 10:27:22 AM1/5/16
to GWT Contributors
I tried to use it... the effect is even worse: changes are never seen. I must be missing something obvious ?
Reply all
Reply to author
Forward
0 new messages