Comments (3)
I don't know how that works but it's not related to this program. If you pass -Dfoo=bar
to it, system property foo will be set to bar. How your particular example is interpreted by akka and/or kafka I have no idea.
from sbt-extras.
@rbellamy It's probably that sbt is forking a new JVM process, rather than running your app in-process.
So you need to set the sys props with javaOptions
.
From the command line you could call it like this:
sbt "set javaOptions in myApp += \"-Dconfig.file=`pwd`/application.conf\"" run
Or in the build file (e.g. local.sbt
) with something like:
javaOptions in LocalProject("myApp") +=
s"""-Dconfig.file=${sys.props("user.dir")}/application.conf"""
from sbt-extras.
@dwijnand that's it exactly! Thanks...
from sbt-extras.
Related Issues (20)
- Update script installation path in README HOT 1
- [Request] Automatically use `sbtn` launcher when possible HOT 2
- -XX:+UseJVMCICompiler option doesn't work with Apple Silicon Mac (M1) HOT 1
- Presence of .sbtopts makes SBT_OPTS ignored
- "Invalid formula" errors on install
- use GitHub Actions instead of Travis CI
- How to use this in Dockerfile? HOT 1
- Ignore CR (\r) when reading .jvmopts, for Windows
- Regression for -sbt-launch-repo option with private nexus HOT 2
- sbtx can't load 1.4.8 or 1.4.9 projects HOT 1
- sbtx --client always returns exitcode=0 HOT 8
- JVM version detection chokes on "17-ea", causing bad JVM option to be passed HOT 1
- Double dash options are incorrectly passed as commands
- "Cannot use JVMCI compiler: No JVMCI compiler found" error with JDK17 HOT 3
- script killed when run inside docker process HOT 1
- -XX:+UseJVMCICompiler with OpenJDK 11.0.14 causes build warnings HOT 5
- .jvmopts is parsed differently comparing to the original(*) sbt launcher HOT 1
- repo.typesafe.com down: Invalid or corrupt jarfile HOT 2
- Cannot set JVM flags via `SBT_OPTS`
- JVM version detection chokes on "17-internal"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sbt-extras.