# JavaAppResource.WithWrapperPath

- Module: [Aspire.Hosting.Java](/reference/api/go/aspire.hosting.java.md)
- Defined on: [JavaAppResource](/reference/api/go/aspire.hosting.java/javaappresource.md)
- Version: `17.0.0-preview.1.26565.2`
- 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.

## Remarks

May be called before or after the build tool is configured. A later call re-points anything that
already resolved the default wrapper, so the result does not depend on the order of builder calls.

## Definition

```go
type JavaAppResource interface {
    // ... omitted for brevity
    WithWrapperPath(wrapperPath string) JavaAppResource
}
```

## Signature

```go
WithWrapperPath(wrapperPath string) JavaAppResource
```

## Parameters

- `wrapperPath` (`string`) -- The path to the wrapper script, absolute or relative to the resource's working directory.

## Returns

[`JavaAppResource`](/reference/api/go/aspire.hosting.java/javaappresource.md) -- A reference to the `IResourceBuilder`.

Returns a handle; failures surface later via `Err()`.

## Defined on

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