-
Notifications
You must be signed in to change notification settings - Fork 443
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
javaOptions should not come after mainclass #598
Comments
the workaround mentioned in the previous is wrong, use the following: |
Sorry, this was a point of missing documentation. Prefixing arguments with javaOptions in Universal ++= (AspectjKeys.weaverOptions in Aspectj).value.map { prop =>
"-J" + prop
} I know this is counter-intuitive to what You can test your settings easly by starting the bash script with sbt stage
./target/universal/stage/bin/test-project-simple -d |
why not make javaOptions goes before mainClass automatically? |
I agree that this is a bit confusing. We kept it this way as the configuration files worked the same way before. So you don't have to change anything. An additional setting |
I WILL make a pull request, in which the javaOptions will be "java's options", and "appOptions" will be "app's options". |
Awesome @woshilaiceshide :) It would be really awesome if previous A new |
I am very sorry for the above promise. |
That's no problem. Just ping when you need any help after you started :) |
I had a similar issue and using the suggesion above resolved it. javaOptions in Universal ++= (AspectjKeys.weaverOptions in Aspectj).value.map { prop =>
"-J" + prop
} |
Thanks for sharing :) |
to reproduce the bug with sbt-native-packager(1.0.2) in a give sbt project,
addSbtPlugin("com.typesafe.sbt" % "sbt-aspectj" % "0.10.2")
javaOptions in Universal ++= (AspectjKeys.weaverOptions in Aspectj).value
I use the following statement in build.sbt as a workaround:
bashScriptExtraDefines += s"""addJava "${(AspectjKeys.weaverOptions in Aspectj).value.mkString(" ")}""""
The text was updated successfully, but these errors were encountered: