Monday, January 11, 2021

Re: CodeServer looks for (not required?) source

On 11. 01. 2021. 09:42, Thomas Broyer wrote:
> On Sunday, January 10, 2021 at 10:29:06 PM UTC+1 Gordan Krešić wrote:
>
> On 10. 01. 2021. 21:58, lofid...@gmail.com wrote:
> > Actually you have following options for the transpiler with Maven
> plugin.
> > Maybe it is the same with the Gradle?
> >
> > <arg>-logLevel</arg>
> > <arg>INFO</arg>
>
> This changes log level for compiled code, not code server's output.
>
> No, it's the GWT compiler/codeserver/etc. log level.
> Adjusting runtime's log level is done through a gwt.logging.logLevel
> <property> or -property.

Oops, my mistake. Gradle plugin I'm using has property named "logLevel" but
it look like it uses it only for configuring client level logging.

When I run CodeServer by hand and pass -logLevel it does give more detailed
output and indeed points me to right direction.

Thanks Thomas nad Lofi.

Unreletaed to this, but Thomas one more question if I may: can you see a
problem with folloging Gradle task:

task gwtCodeServerManual(type: JavaExec) {
main = 'com.google.gwt.dev.codeserver.CodeServer'
classpath += files(sourceSets.main.compileClasspath,
sourceSets.main.runtimeClasspath)
args += '-logLevel ALL'
args += '-bindAddress 0.0.0.0'
args += '-port 9877'
args += '-launcherDir war'
args += '-XmethodNameDisplayMode FULL'
args += 'com.steatoda.mole.gwt.Desk'
}

From --debug output it seems that it passes parameters properly, but
somehow CodeServer complains (here it complains with "Unknown argument:
-logLevel ALL", but it will complain on ANY parameter, whichever I define
first):

11:30:43.721 [INFO] [org.gradle.process.internal.DefaultExecHandle] Starting
process 'command '/usr/local/jdk1.8.0_251/bin/java''. Working directory:
/home/gkresic/Sources/mole Command: /usr/local/jdk1.8.0_251/bin/java
-Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant
-cp <LotsOfJars> com.google.gwt.dev.codeserver.CodeServer -logLevel ALL
-bindAddress 0.0.0.0 -port 9877 -launcherDir war -XmethodNameDisplayMode
FULL com.steatoda.mole.gwt.Desk
[...]
11:30:43.722 [DEBUG] [org.gradle.process.internal.DefaultExecHandle]
Changing state to: STARTING
11:30:43.722 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Waiting
until process started: command '/usr/local/jdk1.8.0_251/bin/java'.
11:30:43.723 [DEBUG] [org.gradle.process.internal.DefaultExecHandle]
Changing state to: STARTED
11:30:43.723 [INFO] [org.gradle.process.internal.DefaultExecHandle]
Successfully started process 'command '/usr/local/jdk1.8.0_251/bin/java''
11:30:43.723 [DEBUG] [org.gradle.process.internal.ExecHandleRunner] waiting
until streams are handled...
11:30:44.045 [ERROR] [system.err] Unknown argument: -logLevel ALL
11:30:44.048 [ERROR] [system.err] Google Web Toolkit 2.9.0
11:30:44.049 [ERROR] [system.err] CodeServer [-[no]allowMissingSrc]
[-[no]compileTest] [-compileTestRecompiles count] [-[no]failOnError]
[-[no]precompile] [-port port] [-src dir] [-workDir dir] [-launcherDir]
[-bindAddress host-name-or-address] [-style (DETAILED|OBFUSCATED|PRETTY)]
[-setProperty name=value,value...] [-[no]incremental] [-sourceLevel [auto,
1.8, 1.9, 1.10, 1.11]] [-logLevel (ERROR|WARN|INFO|TRACE|DEBUG|SPAM|ALL)]
[-[no]generateJsInteropExports]
[-includeJsInteropExports/excludeJsInteropExports regex]
[-XmethodNameDisplayMode (NONE|ONLY_METHOD_NAME|ABBREVIATED|FULL)]
[-X[no]closureFormattedOutput] [module]
11:30:44.083 [ERROR] [system.err]
11:30:44.083 [ERROR] [system.err] where
11:30:44.085 [ERROR] [system.err] -[no]allowMissingSrc
Allows -src flags to reference missing directories. (defaults to OFF)
11:30:44.089 [ERROR] [system.err] -[no]compileTest
Exits after compiling the modules. The exit code will be 0 if the
compile succeeded. (defaults to OFF)
11:30:44.089 [ERROR] [system.err] -compileTestRecompiles
The number of times to recompile (after the first one) during a
compile test.
[...] more of CodeServer's help


If I copy/paste that same cmdline to plain bash script, it works.

Gradle 4.8.

-gkresic.

--
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/38d58050-429a-6b6c-acc3-2ecfae53d0eb%40steatoda.com.

No comments:

Post a Comment