Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

addJavaAppWithJar

Method
📦 Aspire.Hosting.Java v13.6.0-preview.1.26478.8
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addJavaAppWithJar(
name: string,
appDirectory: string,
jarPath: string,
args: string[]): JavaAppResource;
}

Signature

methodaddJavaAppWithJarbuilder
Adds a Java application that runs a prebuilt JAR with `java -jar`.
addJavaAppWithJar(
name: string,
appDirectory: string,
jarPath: string,
args: string[]): JavaAppResource
namestring
appDirectorystring
jarPathstring
argsstring[]
JavaAppResource

Applies to

This method applies to the following types: