Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically add -J to jvm properties and make sure run JVM targets fists #1781

Merged
merged 1 commit into from
May 27, 2020

Conversation

tgodzik
Copy link
Contributor

@tgodzik tgodzik commented May 27, 2020

This PR addresses 2 small issues:

  • Add automatically -J for Bloop so that users don't have to remember about it - fixes Add -J to JVM options automatically when running #1765
  • Make sure that we use a more relevant build target if none was specified, which was an issue in scalameta. When running tests we would pick up js tests first, which are not supported on the same level as jvm ones.

case json: JsonElement if parameters.getDataKind == "scala-main-class" =>
json.as[b.ScalaMainClass].foreach { main =>
val translated = main.getJvmOptions().asScala.map { param =>
if (!param.startsWith("-J"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good idea to act smart here! 👍

Copy link
Member

@ckipp01 ckipp01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add -J to JVM options automatically when running
3 participants