Skip to content
DocsTry Aspire
DocsTry

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

propertyjarPathstringget · set
Gets or sets the path to the JAR file to execute.

Methods

methodwithGradleBuildbuilder
Adds a Gradle build step to the Java application
withGradleBuild(args: string[]): JavaAppExecutableResource
argsstring[]
JavaAppExecutableResource
methodwithGradleTaskbuilder
Configures the Java application to run using a Gradle task
withGradleTask(
task: string,
args: string[]): JavaAppExecutableResource
taskstring
argsstring[]
JavaAppExecutableResource
methodwithMavenBuildbuilder
Adds a Maven build step to the Java application
withMavenBuild(args: string[]): JavaAppExecutableResource
argsstring[]
JavaAppExecutableResource
methodwithMavenGoalbuilder
Configures the Java application to run using a Maven goal
withMavenGoal(
goal: string,
args: string[]): JavaAppExecutableResource
goalstring
argsstring[]
JavaAppExecutableResource
methodwithWrapperPathbuilder
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
wrapperScriptstring
JavaAppExecutableResource