muuki88 / sbt-native-packager-examples

A set of sbt-native-pakager examples
Apache License 2.0
236 stars 55 forks source link

Upgrade startscript-parameters to sbt-native-packager-1.0.0 #4

Closed hstraub closed 9 years ago

hstraub commented 9 years ago

Can you give me a hint, how I can get arguments to the java commandline? I think, I should can pass for example this parameters:

mukis-startscript-parameters +Dde.mukis=Tester -interval 20

I want to use it in combination with a akka micro kernel package:

-Dconfig.file=$AKKA_HOME/conf/application.conf

Thanks!

muuki88 commented 9 years ago

Can you give me a hint, how I can get arguments to the java commandline? I think, I should can pass for example this parameters

The easiest way is to add them in your build.sbt

javaOptions in Universal ++= Seq("mukis-startscript-parameters", "-Dde.mukis=Tester", "-interval", "20")

or create src/universal/conf/application.ini and use the old etc-default style config file. See java server customization and java app customization

muuki88 commented 9 years ago

Oh. And the Akka Microkernel package got deprecated. You can achieve the same stuff with JavaAppPackaging

hstraub commented 9 years ago

Thank you for the quick answer. I will try this!

hstraub commented 9 years ago

I updated the startscript-parameters example with both variants. I create a new pull request.