# JavaAppExecutableResource.withWrapperPath

- Module: [CommunityToolkit.Aspire.Hosting.Java](/reference/api/typescript/communitytoolkit.aspire.hosting.java.md)
- Defined on: [JavaAppExecutableResource](/reference/api/typescript/communitytoolkit.aspire.hosting.java/javaappexecutableresource.md)
- Version: `13.4.0`
- Kind: `method`

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.

## Definition

```typescript
interface JavaAppExecutableResource {
  // ... omitted for brevity
  withWrapperPath(wrapperScript: string): JavaAppExecutableResource;
}
```

## Signature

```typescript
withWrapperPath(wrapperScript: string): JavaAppExecutableResource
```

## Parameters

- `wrapperScript` (`string`)

## Returns

[JavaAppExecutableResource](/reference/api/typescript/communitytoolkit.aspire.hosting.java/javaappexecutableresource.md) `builder`

## Defined on

- [JavaAppExecutableResource](/reference/api/typescript/communitytoolkit.aspire.hosting.java/javaappexecutableresource.md) -- `handle`
