Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

IJavaAppResource.WithJvmArgs

Method
📦 Aspire.Hosting.Java v17.0.0-preview.1.26565.2
type IJavaAppResource interface {
// ... omitted for brevity
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().

Defined on

This method is defined on the following type: