Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithJvmArgs

Method
📦 Aspire.Hosting.Java v17.0.0-preview.1.26565.2
func (IJavaAppResource) WithJvmArgs(args []string) IJavaAppResource

Signature

methodWithJvmArgsbuilder
Adds arguments to the Java Virtual Machine that runs the application.
WithJvmArgs(args []string) IJavaAppResource
args[]stringThe JVM arguments, for example -Xmx512m.
IJavaAppResource

A reference to the IResourceBuilder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: