Skip to content
Docs Try Aspire
Docs Try

withJvmArgs

Method
📦 CommunityToolkit.Aspire.Hosting.Java v13.4.0
interface ContainerResource {
// ... omitted for brevity
withJvmArgs(args: string[]): IResourceWithEnvironment;
}

Signature

method withJvmArgs builder
Configures the Java Virtual Machine arguments for the Java application. The arguments are set via the `JAVA_TOOL_OPTIONS` environment variable, which is recognized by the JVM regardless of how the application is launched (e.g., `java -jar`, Maven wrapper, or Gradle wrapper).
withJvmArgs(args: string[]): IResourceWithEnvironment
args string[]
IResourceWithEnvironment

Applies to

This method applies to the following types: