mxlse
mxlse

Reputation: 2784

Workaround for known timestamp bug of *.nocache.js files (for Windows / without Maven)

In GWT 2.7 there is the already known bug with *.nocache.js files, which are not getting the actual timestamp while compiling but the timestamp of the module file (see this).

For the gwt-maven-plugin there was already a workaround commited (see CompileMojo.java).

For those projects which are not built with Maven I wanted to ask, if someone knows a "maven-free" and automated solution as workaround?!

What I'm doing right know is touching the file on my Linux server with

find /my/path/ -name '*.nocache.js' -exec touch {} \; &&

which is working fine right now. I can also use copy /b filename.ext +,, on Windows, but I wanted to know if someone knows an automated workaround for this compilation issue in GWT 2.7 (with Eclipse)

Upvotes: 9

Views: 166

Answers (1)

Luigi Polvani
Luigi Polvani

Reputation: 405

You can simply install the "touch" command on windows and keep using your current script.

You can find a number of implementations of touch for windows, here an open source one: https://sourceforge.net/projects/touchforwindows/

Upvotes: 0

Related Questions