addJavaAppWithJar
Method
interface IDistributedApplicationBuilder { // ... omitted for brevity addJavaAppWithJar( name: string, appDirectory: string, jarPath: string, args: string[]): JavaAppResource;}Signature
method
addJavaAppWithJar builderAdds a Java application that runs a prebuilt JAR with `java -jar`.
addJavaAppWithJar( name: string, appDirectory: string, jarPath: string, args: string[]): JavaAppResourceParameters
namestringThe name of the resource.appDirectory stringThe application directory. Relative paths are resolved against the AppHost directory.jarPath stringThe path to the JAR file to execute. Relative paths are resolved against `appDirectory`.argsstring[]Arguments passed to the Java application after the JAR path.Returns
JavaAppResource Applies to
This method applies to the following types: