CommunityToolkit.Aspire.Hosting.Java
📦 CommunityToolkit.Aspire.Hosting.Javav13.4.010Functions
2Types
2 types and 2 members
Types
Functions
method
addJavaAppbuilderAdds a Java application to the application model. Executes the executable Java app.
addJavaApp(name: string, workingDirectory: string): JavaAppExecutableResourcemethod
addJavaAppWithJarbuilderAdds a Java application to the application model. Executes the executable Java app.
addJavaAppWithJar(name: string, workingDirectory: string, jarPath: string, args?: string[]): JavaAppExecutableResourcemethod
addJavaContainerAppbuilderAdds a Java application to the application model. Executes the containerized Java app.
addJavaContainerApp(name: string, image: string, imageTag?: string): JavaAppContainerResourcemethod
withGradleBuildbuilderAdds a Gradle build step to the Java application
withGradleBuild(args: string[]): JavaAppExecutableResourcemethod
withGradleTaskbuilderConfigures the Java application to run using a Gradle task
withGradleTask(task: string, args: string[]): JavaAppExecutableResourcemethod
withJvmArgsbuilderConfigures the Java Virtual Machine arguments for the Java application. The arguments are set via the `JAVA_TOOL_OPTIONS` environment variable, which is recognized by the JVM regardless of how the application is launched (e.g., `java -jar`, Maven wrapper, or Gradle wrapper).
withJvmArgs(args: string[]): IResourceWithEnvironmentmethod
withMavenBuildbuilderAdds a Maven build step to the Java application
withMavenBuild(args: string[]): JavaAppExecutableResourcemethod
withMavenGoalbuilderConfigures the Java application to run using a Maven goal
withMavenGoal(goal: string, args: string[]): JavaAppExecutableResourcemethod
withOtelAgentbuilderConfigures the OpenTelemetry Java Agent for the Java application.
withOtelAgent(agentPath?: string): IResourceWithEnvironmentmethod
withWrapperPathbuilderConfigures 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