javagwtgxtgwt-compiler

Is it possible to get non-random names for Cache Files from GWT Compile


When I try to load the war file for my project in the Lighthttp server, I get "filename too long" error from the server for the generated JS files such as this :

"733C57A6999C647D009A3EBA1F5CEF9C.cache.js"

When I compile I am using the collapse all property so only one JS file gets created

I wanted to know if there was something that I could do in the code itself or in the xml file to generate a shorter name before it compiles (I don't want to have to rename the file every time)

Any help would be really appreciated.


Solution

  • If you only have one generated permutation, and you want to ignore the cacheing and give the file your own name, you can use the single script linker - this will generate only one JS file with both the selection script and the compiled app. This only works with one permutation.

     <add-linker name="sso" />