# JavaAppHostingExtension Methods

- Package: [CommunityToolkit.Aspire.Hosting.Java](/reference/api/csharp/communitytoolkit.aspire.hosting.java.md)
- Type: [JavaAppHostingExtension](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaapphostingextension.md)
- Kind: `Methods`
- Members: `15`

Provides extension methods for adding Java applications to an `Hosting.IDistributedApplicationBuilder`.

## AddJavaApp(IDistributedApplicationBuilder, string, JavaAppContainerResourceOptions)

> **Obsolete:** Use AddJavaContainerApp instead. This method will be removed in a future version.

- Name: `AddJavaApp(IDistributedApplicationBuilder, string, JavaAppContainerResourceOptions)`
- Modifiers: `extension`
- Returns: `IResourceBuilder<JavaAppContainerResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Java/JavaAppHostingExtension.Container.cs#L47-L65)

Adds a Java application to the application model. Executes the containerized Java app.

```csharp
public static class JavaAppHostingExtension
{
    public static IResourceBuilder<JavaAppContainerResource> AddJavaApp(
        this IDistributedApplicationBuilder builder,
        string name,
        JavaAppContainerResourceOptions options)
    {
        // ...
    }
}
```

## Parameters

- `builder` (`IDistributedApplicationBuilder`)
  The `Hosting.IDistributedApplicationBuilder` to add the resource to.
- `name` (`string`)
  The name of the resource.
- `options` ([JavaAppContainerResourceOptions](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaappcontainerresourceoptions.md))
  The [JavaAppContainerResourceOptions](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaappcontainerresourceoptions.md) to configure the Java application.

## Returns

`IResourceBuilder<JavaAppContainerResource>` -- A reference to the `ApplicationModel.IResourceBuilder`1`.

## AddJavaApp(IDistributedApplicationBuilder, string, string, string, string[]?)

- Name: `AddJavaApp(IDistributedApplicationBuilder, string, string, string, string[]?)`
- Modifiers: `extension`
- Returns: `IResourceBuilder<JavaAppExecutableResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Java/JavaAppHostingExtension.Executable.cs#L32-L45)

Adds a Java application to the application model. Executes the executable Java app.

```csharp
public static class JavaAppHostingExtension
{
    public static IResourceBuilder<JavaAppExecutableResource> AddJavaApp(
        this IDistributedApplicationBuilder builder,
        string name,
        string workingDirectory,
        string jarPath,
        string[]? args = null)
    {
        // ...
    }
}
```

## Parameters

- `builder` (`IDistributedApplicationBuilder`)
  The `Hosting.IDistributedApplicationBuilder` to add the resource to.
- `name` (`string`)
  The name of the resource.
- `workingDirectory` (`string`)
  The working directory to use for the command.
- `jarPath` (`string`)
  The path to the jar file, relative to the resource working directory.
- `args` (`string[]?`) `optional`
  The optional arguments to be passed to the executable when it is started.

## Returns

`IResourceBuilder<JavaAppExecutableResource>` -- A reference to the `ApplicationModel.IResourceBuilder`1`.

## ATS metadata

### ATS export

- Available to Polyglot AppHosts through the Aspire Type System.

## AddJavaApp(IDistributedApplicationBuilder, string, string)

- Name: `AddJavaApp(IDistributedApplicationBuilder, string, string)`
- Modifiers: `extension`
- Returns: `IResourceBuilder<JavaAppExecutableResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Java/JavaAppHostingExtension.Executable.cs#L62-L89)

Adds a Java application to the application model. Executes the executable Java app.

```csharp
public static class JavaAppHostingExtension
{
    public static IResourceBuilder<JavaAppExecutableResource> AddJavaApp(
        this IDistributedApplicationBuilder builder,
        string name,
        string workingDirectory)
    {
        // ...
    }
}
```

## Parameters

- `builder` (`IDistributedApplicationBuilder`)
  The `Hosting.IDistributedApplicationBuilder` to add the resource to.
- `name` (`string`)
  The name of the resource.
- `workingDirectory` (`string`)
  The working directory to use for the command.

## Returns

`IResourceBuilder<JavaAppExecutableResource>` -- A reference to the `ApplicationModel.IResourceBuilder`1`.

## Remarks

Use [JavaAppHostingExtension.WithMavenGoal(IResourceBuilder<JavaAppExecutableResource>, string, string[])](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaapphostingextension/methods.md#withmavengoal-iresourcebuilder-javaappexecutableresource-string-string) or [JavaAppHostingExtension.WithGradleTask(IResourceBuilder<JavaAppExecutableResource>, string, string[])](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaapphostingextension/methods.md#withgradletask-iresourcebuilder-javaappexecutableresource-string-string) to run the application via a build tool, or use the overload that accepts a `jarPath` parameter to run with `java -jar`.

## ATS metadata

### ATS export

- Available to Polyglot AppHosts through the Aspire Type System.

## AddJavaApp(IDistributedApplicationBuilder, string, string, JavaAppExecutableResourceOptions)

> **Obsolete:** Use AddJavaApp(string, string, string, string[]?) instead. This method will be removed in a future version.

- Name: `AddJavaApp(IDistributedApplicationBuilder, string, string, JavaAppExecutableResourceOptions)`
- Modifiers: `extension`
- Returns: `IResourceBuilder<JavaAppExecutableResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Java/JavaAppHostingExtension.Executable.cs#L103-L124)

Adds a Java application to the application model. Executes the executable Java app.

```csharp
public static class JavaAppHostingExtension
{
    public static IResourceBuilder<JavaAppExecutableResource> AddJavaApp(
        this IDistributedApplicationBuilder builder,
        string name,
        string workingDirectory,
        JavaAppExecutableResourceOptions options)
    {
        // ...
    }
}
```

## Parameters

- `builder` (`IDistributedApplicationBuilder`)
  The `Hosting.IDistributedApplicationBuilder` to add the resource to.
- `name` (`string`)
  The name of the resource.
- `workingDirectory` (`string`)
  The working directory to use for the command.
- `options` ([JavaAppExecutableResourceOptions](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaappexecutableresourceoptions.md))
  The [JavaAppExecutableResourceOptions](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaappexecutableresourceoptions.md) to configure the Java application.

## Returns

`IResourceBuilder<JavaAppExecutableResource>` -- A reference to the `ApplicationModel.IResourceBuilder`1`.

## AddJavaContainerApp(IDistributedApplicationBuilder, string, string, string?)

- Name: `AddJavaContainerApp(IDistributedApplicationBuilder, string, string, string?)`
- Modifiers: `extension`
- Returns: `IResourceBuilder<JavaAppContainerResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Java/JavaAppHostingExtension.Container.cs#L25-L34)

Adds a Java application to the application model. Executes the containerized Java app.

```csharp
public static class JavaAppHostingExtension
{
    public static IResourceBuilder<JavaAppContainerResource> AddJavaContainerApp(
        this IDistributedApplicationBuilder builder,
        string name,
        string image,
        string? imageTag = null)
    {
        // ...
    }
}
```

## Parameters

- `builder` (`IDistributedApplicationBuilder`)
  The `Hosting.IDistributedApplicationBuilder` to add the resource to.
- `name` (`string`)
  The name of the resource.
- `image` (`string`)
  The container image name.
- `imageTag` (`string?`) `optional`
  The container image tag.

## Returns

`IResourceBuilder<JavaAppContainerResource>` -- A reference to the `ApplicationModel.IResourceBuilder`1`.

## ATS metadata

### ATS export

- Available to Polyglot AppHosts through the Aspire Type System.

## AddSpringApp(IDistributedApplicationBuilder, string, JavaAppContainerResourceOptions)

> **Obsolete:** Use AddJavaContainerApp instead. This method will be removed in a future version.

- Name: `AddSpringApp(IDistributedApplicationBuilder, string, JavaAppContainerResourceOptions)`
- Modifiers: `extension`
- Returns: `IResourceBuilder<JavaAppContainerResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Java/JavaAppHostingExtension.Container.cs#L77)

Adds a Spring application to the application model. Executes the containerized Spring app.

```csharp
public static class JavaAppHostingExtension
{
    public static IResourceBuilder<JavaAppContainerResource> AddSpringApp(
        this IDistributedApplicationBuilder builder,
        string name,
        JavaAppContainerResourceOptions options)
    {
        // ...
    }
}
```

## Parameters

- `builder` (`IDistributedApplicationBuilder`)
  The `Hosting.IDistributedApplicationBuilder` to add the resource to.
- `name` (`string`)
  The name of the resource.
- `options` ([JavaAppContainerResourceOptions](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaappcontainerresourceoptions.md))
  The [JavaAppContainerResourceOptions](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaappcontainerresourceoptions.md) to configure the Java application.

## Returns

`IResourceBuilder<JavaAppContainerResource>` -- A reference to the `ApplicationModel.IResourceBuilder`1`.

## AddSpringApp(IDistributedApplicationBuilder, string, string, JavaAppExecutableResourceOptions)

> **Obsolete:** Use AddJavaApp instead. This method will be removed in a future version.

- Name: `AddSpringApp(IDistributedApplicationBuilder, string, string, JavaAppExecutableResourceOptions)`
- Modifiers: `extension`
- Returns: `IResourceBuilder<JavaAppExecutableResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Java/JavaAppHostingExtension.Executable.cs#L137)

Adds a Spring application to the application model. Executes the executable Spring app.

```csharp
public static class JavaAppHostingExtension
{
    public static IResourceBuilder<JavaAppExecutableResource> AddSpringApp(
        this IDistributedApplicationBuilder builder,
        string name,
        string workingDirectory,
        JavaAppExecutableResourceOptions options)
    {
        // ...
    }
}
```

## Parameters

- `builder` (`IDistributedApplicationBuilder`)
  The `Hosting.IDistributedApplicationBuilder` to add the resource to.
- `name` (`string`)
  The name of the resource.
- `workingDirectory` (`string`)
  The working directory to use for the command. If null, the working directory of the current process is used.
- `options` ([JavaAppExecutableResourceOptions](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaappexecutableresourceoptions.md))
  The [JavaAppExecutableResourceOptions](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaappexecutableresourceoptions.md) to configure the Java application.

## Returns

`IResourceBuilder<JavaAppExecutableResource>` -- A reference to the `ApplicationModel.IResourceBuilder`1`.

## WithGradleBuild(IResourceBuilder<JavaAppExecutableResource>, string[])

- Name: `WithGradleBuild(IResourceBuilder<JavaAppExecutableResource>, string[])`
- Modifiers: `extension`
- Returns: `IResourceBuilder<JavaAppExecutableResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Java/JavaAppHostingExtension.Executable.cs#L204-L214)

Adds a Gradle build step to the application model. The wrapper script path defaults to `gradlew` (or `gradlew.bat` on Windows) in the resource's working directory, unless overridden with [JavaAppHostingExtension.WithWrapperPath(IResourceBuilder<JavaAppExecutableResource>, string)](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaapphostingextension/methods.md#withwrapperpath-iresourcebuilder-javaappexecutableresource-string).

```csharp
public static class JavaAppHostingExtension
{
    public static IResourceBuilder<JavaAppExecutableResource> WithGradleBuild(
        this IResourceBuilder<JavaAppExecutableResource> builder,
        params string[] args)
    {
        // ...
    }
}
```

## Parameters

- `builder` (`IResourceBuilder<JavaAppExecutableResource>`)
  The `ApplicationModel.IResourceBuilder`1` to add the Gradle build step to.
- `args` (`string[]`)
  Arguments to pass to the Gradle wrapper. If not provided, defaults to `clean build`.

## Returns

`IResourceBuilder<JavaAppExecutableResource>` -- A reference to the `ApplicationModel.IResourceBuilder`1`.

## ATS metadata

### ATS export

- Available to Polyglot AppHosts through the Aspire Type System.

## WithGradleTask(IResourceBuilder<JavaAppExecutableResource>, string, string[])

- Name: `WithGradleTask(IResourceBuilder<JavaAppExecutableResource>, string, string[])`
- Modifiers: `extension`
- Returns: `IResourceBuilder<JavaAppExecutableResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Java/JavaAppHostingExtension.Executable.cs#L297-L317)

Configures the Java application to run using a Gradle task (e.g., `bootRun`). In run mode, the resource command is changed from `java` to the Gradle wrapper. The wrapper script path defaults to `gradlew` (or `gradlew.bat` on Windows) in the resource's working directory, unless overridden with [JavaAppHostingExtension.WithWrapperPath(IResourceBuilder<JavaAppExecutableResource>, string)](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaapphostingextension/methods.md#withwrapperpath-iresourcebuilder-javaappexecutableresource-string).

```csharp
public static class JavaAppHostingExtension
{
    public static IResourceBuilder<JavaAppExecutableResource> WithGradleTask(
        this IResourceBuilder<JavaAppExecutableResource> builder,
        string task,
        params string[] args)
    {
        // ...
    }
}
```

## Parameters

- `builder` (`IResourceBuilder<JavaAppExecutableResource>`)
  The `ApplicationModel.IResourceBuilder`1` to configure.
- `task` (`string`)
  The Gradle task to execute (e.g., `bootRun`).
- `args` (`string[]`)
  Additional arguments to pass to the Gradle wrapper.

## Returns

`IResourceBuilder<JavaAppExecutableResource>` -- A reference to the `ApplicationModel.IResourceBuilder`1`.

## ATS metadata

### ATS export

- Available to Polyglot AppHosts through the Aspire Type System.

## WithJvmArgs(IResourceBuilder<T>, string[])

- Name: `WithJvmArgs(IResourceBuilder<T>, string[])`
- Modifiers: `extension`
- Returns: `IResourceBuilder<T>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Java/JavaAppHostingExtension.Executable.cs#L334-L345)

Configures 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).

```csharp
public static class JavaAppHostingExtension
{
    public static IResourceBuilder<T> WithJvmArgs<T>(
        this IResourceBuilder<T> builder,
        string[] args)
    {
        // ...
    }
}
```

## Parameters

- `builder` (`IResourceBuilder<T>`)
  The resource builder.
- `args` (`string[]`)
  The JVM arguments.

## Returns

`IResourceBuilder<T>` -- A reference to the `ApplicationModel.IResourceBuilder`1`.

## ATS metadata

### ATS export

- Available to Polyglot AppHosts through the Aspire Type System.

## WithMavenBuild(IResourceBuilder<JavaAppExecutableResource>, MavenOptions)

> **Obsolete:** Use WithMavenBuild(string?, params string[]) instead. This method will be removed in a future version.

- Name: `WithMavenBuild(IResourceBuilder<JavaAppExecutableResource>, MavenOptions)`
- Modifiers: `extension`
- Returns: `IResourceBuilder<JavaAppExecutableResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Java/JavaAppHostingExtension.Executable.cs#L150-L160)

Adds a Maven build step to the application model.

```csharp
public static class JavaAppHostingExtension
{
    public static IResourceBuilder<JavaAppExecutableResource> WithMavenBuild(
        this IResourceBuilder<JavaAppExecutableResource> builder,
        MavenOptions mavenOptions)
    {
        // ...
    }
}
```

## Parameters

- `builder` (`IResourceBuilder<JavaAppExecutableResource>`)
  The `ApplicationModel.IResourceBuilder`1` to add the Maven build step to.
- `mavenOptions` ([MavenOptions](/reference/api/csharp/communitytoolkit.aspire.hosting.java/mavenoptions.md))
  The [MavenOptions](/reference/api/csharp/communitytoolkit.aspire.hosting.java/mavenoptions.md) to configure the Maven build step.

## Returns

`IResourceBuilder<JavaAppExecutableResource>` -- A reference to the `ApplicationModel.IResourceBuilder`1`.

## WithMavenBuild(IResourceBuilder<JavaAppExecutableResource>, string[])

- Name: `WithMavenBuild(IResourceBuilder<JavaAppExecutableResource>, string[])`
- Modifiers: `extension`
- Returns: `IResourceBuilder<JavaAppExecutableResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Java/JavaAppHostingExtension.Executable.cs#L177-L187)

Adds a Maven build step to the application model. The wrapper script path defaults to `mvnw` (or `mvnw.cmd` on Windows) in the resource's working directory, unless overridden with [JavaAppHostingExtension.WithWrapperPath(IResourceBuilder<JavaAppExecutableResource>, string)](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaapphostingextension/methods.md#withwrapperpath-iresourcebuilder-javaappexecutableresource-string).

```csharp
public static class JavaAppHostingExtension
{
    public static IResourceBuilder<JavaAppExecutableResource> WithMavenBuild(
        this IResourceBuilder<JavaAppExecutableResource> builder,
        params string[] args)
    {
        // ...
    }
}
```

## Parameters

- `builder` (`IResourceBuilder<JavaAppExecutableResource>`)
  The `ApplicationModel.IResourceBuilder`1` to add the Maven build step to.
- `args` (`string[]`)
  Arguments to pass to the Maven wrapper. If not provided, defaults to `clean package`.

## Returns

`IResourceBuilder<JavaAppExecutableResource>` -- A reference to the `ApplicationModel.IResourceBuilder`1`.

## ATS metadata

### ATS export

- Available to Polyglot AppHosts through the Aspire Type System.

## WithMavenGoal(IResourceBuilder<JavaAppExecutableResource>, string, string[])

- Name: `WithMavenGoal(IResourceBuilder<JavaAppExecutableResource>, string, string[])`
- Modifiers: `extension`
- Returns: `IResourceBuilder<JavaAppExecutableResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Java/JavaAppHostingExtension.Executable.cs#L257-L277)

Configures the Java application to run using a Maven goal (e.g., `spring-boot:run`). In run mode, the resource command is changed from `java` to the Maven wrapper. The wrapper script path defaults to `mvnw` (or `mvnw.cmd` on Windows) in the resource's working directory, unless overridden with [JavaAppHostingExtension.WithWrapperPath(IResourceBuilder<JavaAppExecutableResource>, string)](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaapphostingextension/methods.md#withwrapperpath-iresourcebuilder-javaappexecutableresource-string).

```csharp
public static class JavaAppHostingExtension
{
    public static IResourceBuilder<JavaAppExecutableResource> WithMavenGoal(
        this IResourceBuilder<JavaAppExecutableResource> builder,
        string goal,
        params string[] args)
    {
        // ...
    }
}
```

## Parameters

- `builder` (`IResourceBuilder<JavaAppExecutableResource>`)
  The `ApplicationModel.IResourceBuilder`1` to configure.
- `goal` (`string`)
  The Maven goal to execute (e.g., `spring-boot:run`).
- `args` (`string[]`)
  Additional arguments to pass to the Maven wrapper.

## Returns

`IResourceBuilder<JavaAppExecutableResource>` -- A reference to the `ApplicationModel.IResourceBuilder`1`.

## ATS metadata

### ATS export

- Available to Polyglot AppHosts through the Aspire Type System.

## WithOtelAgent(IResourceBuilder<T>, string?)

- Name: `WithOtelAgent(IResourceBuilder<T>, string?)`
- Modifiers: `extension`
- Returns: `IResourceBuilder<T>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Java/JavaAppHostingExtension.Executable.cs#L359-L371)

Configures the OpenTelemetry Java Agent for the Java application.

```csharp
public static class JavaAppHostingExtension
{
    public static IResourceBuilder<T> WithOtelAgent<T>(
        this IResourceBuilder<T> builder,
        string? agentPath = null)
    {
        // ...
    }
}
```

## Parameters

- `builder` (`IResourceBuilder<T>`)
  The resource builder.
- `agentPath` (`string?`) `optional`
  The path to the OpenTelemetry Java Agent jar file.

## Returns

`IResourceBuilder<T>` -- A reference to the `ApplicationModel.IResourceBuilder`1`.

## ATS metadata

### ATS export

- Available to Polyglot AppHosts through the Aspire Type System.

## WithWrapperPath(IResourceBuilder<JavaAppExecutableResource>, string)

- Name: `WithWrapperPath(IResourceBuilder<JavaAppExecutableResource>, string)`
- Modifiers: `extension`
- Returns: `IResourceBuilder<JavaAppExecutableResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Java/JavaAppHostingExtension.Executable.cs#L409-L416)

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.

```csharp
public static class JavaAppHostingExtension
{
    public static IResourceBuilder<JavaAppExecutableResource> WithWrapperPath(
        this IResourceBuilder<JavaAppExecutableResource> builder,
        string wrapperScript)
    {
        // ...
    }
}
```

## Parameters

- `builder` (`IResourceBuilder<JavaAppExecutableResource>`)
  The `ApplicationModel.IResourceBuilder`1` to configure.
- `wrapperScript` (`string`)
  The path to the wrapper script, relative to the resource working directory or an absolute path.

## Returns

`IResourceBuilder<JavaAppExecutableResource>` -- A reference to the `ApplicationModel.IResourceBuilder`1`.

## ATS metadata

### ATS export

- Available to Polyglot AppHosts through the Aspire Type System.
