Skip to content
Docs Try Aspire
Docs Try

JavaAppExecutableResource

Handle
📦 CommunityToolkit.Aspire.Hosting.Java v13.4.0
interface JavaAppExecutableResource
extends IComputeResource,
IResource,
IResourceWithArgs,
IResourceWithEndpoints,
IResourceWithEnvironment,
IResourceWithProbes,
IResourceWithWaitSupport,
IResourceWithServiceDiscovery {
jarPath: string;
withGradleBuild(args: string[]): JavaAppExecutableResource;
withGradleTask(
task: string,
args: string[]): JavaAppExecutableResource;
withMavenBuild(args: string[]): JavaAppExecutableResource;
withMavenGoal(
goal: string,
args: string[]): JavaAppExecutableResource;
withWrapperPath(wrapperScript: string): JavaAppExecutableResource;
}

Properties

property jarPath string get · set
Gets or sets the path to the JAR file to execute.

Methods

method withGradleBuild builder
Adds a Gradle build step to the Java application
withGradleBuild(args: string[]): JavaAppExecutableResource
args string[]
JavaAppExecutableResource
method withGradleTask builder
Configures the Java application to run using a Gradle task
withGradleTask(
task: string,
args: string[]): JavaAppExecutableResource
task string
args string[]
JavaAppExecutableResource
method withMavenBuild builder
Adds a Maven build step to the Java application
withMavenBuild(args: string[]): JavaAppExecutableResource
args string[]
JavaAppExecutableResource
method withMavenGoal builder
Configures the Java application to run using a Maven goal
withMavenGoal(
goal: string,
args: string[]): JavaAppExecutableResource
goal string
args string[]
JavaAppExecutableResource
method withWrapperPath builder
Configures a custom build tool wrapper script path. This is useful when the wrapper script is not in the default location or has a non-standard name.
withWrapperPath(wrapperScript: string): JavaAppExecutableResource
wrapperScript string
JavaAppExecutableResource