All Downloads are FREE. Search and download functionalities are using the official Maven repository.

almond.launcher.directives.JavaOptions.scala Maven / Gradle / Ivy

There is a newer version: 0.14.0-RC15
Show newest version
package almond.launcher.directives

import almond.launcher.LauncherParameters

import scala.cli.directivehandler._

@DirectiveGroupName("Java options")
@DirectiveExamples("//> using javaOpt -Xmx2g, -Dsomething=a")
@DirectiveUsage(
  "//> using javaOpt _options_",
  "`//> using javaOpt `_options_"
)
@DirectiveDescription("Add Java options which will be passed when running an application.")
final case class JavaOptions(
  @DirectiveName("javaOpt")
  javaOptions: List[Positioned[String]] = Nil
) extends HasLauncherParameters {
  def launcherParameters = LauncherParameters(
    javaOptions = javaOptions.map(_.value)
  )
}

object JavaOptions {
  val handler: DirectiveHandler[JavaOptions] = DirectiveHandler.derive
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy