Skip to content

No Simple Way to Replace or Customize DownloadSupport Implementation #204

@matrei

Description

@matrei

I need to use a custom implementation of DownloadSupport in a GebSpec, but I found it quite difficult to replace the default implementation.

The best approach I could come up with was to create a Trait that implements DownloadSupport, essentially duplicating most of the functionality from DefaultDownloadSupport while modifying just one detail: the private URL resolveUrl(Map) method.

If resolveUrl(Map) wasn't private, or if there were a more straightforward way to override or swap the DownloadSupport implementation, this process would be much simpler and more flexible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions