Skip to content
Discussion options

You must be logged in to vote

So, you are running dev server from Gradle plugin, not as IDEA run configuration? Then you have two points which influence location in dev server:

  • relativePathInOutputDir (which is js by default)
  • targetFileName (which is gradle project name by default + '.js' suffix)

The same rule is applied when building JS file by generateJavaScript task. The base dir is $BUILD_DIR/generated/teavm, and then particular task adds ${relativePathInOutputDir}/${targetFileName}. BTW, when your project also has war plugin, TeaVM plugin will add TeaVM base build dir (i.e. $BUILD_DIR/generated/teavm) into war file output, so you can find JS, generated by TeaVM, under the same relative path (i.e. ${relativePath…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@edgarogh
Comment options

@konsoletyper
Comment options

Answer selected by edgarogh
@edgarogh
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants