Well I'm an idiot - the deal is not to use the -i incremental flag (not sure what that does), it is to use the TeaVMDevServerRunner class instead of TeaVMRunner. However, I made a gradle task for that, and it seems to be working, but I can't load the webpage in the browser.
Here is my gradle task:
/**
* Run TeaVM dev server
*/
task tv_dev (type: JavaExec){
description = "Run TeaVM dev server"
jvmArgs = [ '-Xmx1200m' ]
main = 'org.teavm.cli.TeaVMDevServerRunner'
args = [ "-d", TV_OutDir, mainClassName ]
classpath = sourceSets.main.runtimeClasspath
}
Then I try to load localhost:8888 in my browser and it just shows an empty page. It shows this in the console:
2023-02-21 15:16:46.476:INFO:oejs.AbstractConnector:main: Started ServerConnector@706a04ae{HTTP/1.1, (http/1.1)}{
0.0.0.0:8888}
2023-02-21 15:16:46.477:INFO:oejs.Server:main: Started @220ms
INFO: Starting build
INFO: Recompiled stale methods: 15800
INFO: Build complete successfully
INFO: Classes compiled: 2384
INFO: Methods compiled: 22758
INFO: Compilation took 30546 ms
jeff