File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed
modules/cli/src/main/scala/scala/cli/commands Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ object BloopStart extends ScalaCommand[BloopStartOptions] {
15
15
)
16
16
def run (options : BloopStartOptions , args : RemainingArgs ): Unit = {
17
17
val threads = BloopThreads .create()
18
- val bloopRifleConfig = options.bloopRifleConfig
18
+ val bloopRifleConfig = options.bloopRifleConfig()
19
19
val logger = options.logging.logger
20
20
21
21
val isRunning =
Original file line number Diff line number Diff line change @@ -53,7 +53,12 @@ final case class SharedCompilationServerOptions(
53
53
@ Group (" Compilation server" )
54
54
@ HelpMessage (" Maximum duration to wait for compilation server to start up" )
55
55
@ ValueDescription (" duration" )
56
- bloopStartupTimeout : Option [String ] = None
56
+ bloopStartupTimeout : Option [String ] = None ,
57
+
58
+ @ Group (" Compilation server" )
59
+ bloopDefaultJavaOpts : Boolean = true ,
60
+ @ Group (" Compilation server" )
61
+ bloopJavaOpt : List [String ] = Nil
57
62
) {
58
63
// format: on
59
64
@@ -177,7 +182,8 @@ final case class SharedCompilationServerOptions(
177
182
bspStderr = if (verbosity >= 3 ) Some (System .err) else None ,
178
183
period = bloopBspCheckPeriodDuration.getOrElse(baseConfig.period),
179
184
timeout = bloopBspTimeoutDuration.getOrElse(baseConfig.timeout),
180
- initTimeout = bloopStartupTimeoutDuration.getOrElse(baseConfig.initTimeout)
185
+ initTimeout = bloopStartupTimeoutDuration.getOrElse(baseConfig.initTimeout),
186
+ javaOpts = (if (bloopDefaultJavaOpts) baseConfig.javaOpts else Nil ) ++ bloopJavaOpt
181
187
)
182
188
}
183
189
Original file line number Diff line number Diff line change @@ -92,6 +92,10 @@ Duration between checks of the BSP connection state
92
92
93
93
Maximum duration to wait for compilation server to start up
94
94
95
+ #### ` --bloop-default-java-opts `
96
+
97
+ #### ` --bloop-java-opt `
98
+
95
99
## Compile options
96
100
97
101
Available in commands:
You can’t perform that action at this time.
0 commit comments