# JavaAppResource.withWrapperPath

- Module: [Aspire.Hosting.Java](/reference/api/typescript/aspire.hosting.java.md)
- Defined on: [JavaAppResource](/reference/api/typescript/aspire.hosting.java/javaappresource.md)
- Version: `13.6.0-preview.1.26478.8`
- Kind: `method`

Overrides the build tool wrapper script path, for repositories whose wrapper is not in the default location or does not use the default name.

## Definition

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

## Signature

```typescript
withWrapperPath(wrapperPath: string): JavaAppResource
```

## Parameters

- `wrapperPath` (`string`)

## Returns

[JavaAppResource](/reference/api/typescript/aspire.hosting.java/javaappresource.md) `builder`

## Defined on

- [JavaAppResource](/reference/api/typescript/aspire.hosting.java/javaappresource.md) -- `handle`
