because creating chrome extension gwt project, want use single script linker avoid inline scripting restriction (sigh...). , found resource on line: http://tech-drum.blogspot.ch/2012/08/gwt-chrome-extension-using-version-2.html
this single script linker looks charm, when added gwt.xml file , compile, got errors... (sigh again)
the following error msg:
[info] --- gwt-maven-plugin:2.5.1:compile (default) @ fake-app --- [info] auto discovered modules [com.fake...] [info] compiling module com.fake.name.app [info] compiling 6 permutations [info] compiling permutation 0... [info] process output [info] compiling [info] compiling permutation 3... [info] process output [info] compiling [info] compiling permutation 1... [info] process output [info] compiling [info] compiling permutation 2... [info] compiling permutation 4... [info] compiling permutation 5... [info] compile of permutations succeeded [info] linking /path/to/fake/app [info] invoking linker single script [info] [error] module must have 1 distinct permutation when using single script linker; found 6 [info] ------------------------------------------------------------------------ [info] build failure [info] ------------------------------------------------------------------------
what's problem this? looks permutation number (assumed js file?) larger expected, shouldn't linker put size restriction when creating permutations? in short, how fix this? lot!
selecting user agent chrome should fix problem.
you don't need more user-agent permutations since extension works 1 browser.
the linker using correct 1 producing javascript file code of extension.
<set-property name="user.agent" value="safari" />