Skip to content

Add a Path-based Resources API - #159

Open
slachiewicz wants to merge 4 commits into
masterfrom
agent/resources-api
Open

slachiewicz wants to merge 4 commits into
masterfrom
agent/resources-api

Conversation

@slachiewicz

@slachiewicz slachiewicz commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Adds org.codehaus.plexus.build.resources.Resources, a Path-based API with hasDelta, refresh, newOutputStream, isUptodate, getPath, markDerived and copy. DefaultResources delegates to BuildContext, so plugins can adopt it without changes to their build tool. BuildContext.addWarning and addError are now @Deprecated, pointing at the Messages API.

Part of #76. markDerived is a no-op in the default implementation, and querying derived files and a Stream-based replacement for scanners are not included. hasDelta is documented as a best-effort hint, and isUptodate is preferred for input/output pairs.

Supersedes the draft PR #104, which has the same API shape but no tests and no deprecations.

@slachiewicz slachiewicz added the enhancement New feature or request label Nov 19, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review November 20, 2026 06:06
@slachiewicz
slachiewicz marked this pull request as draft November 22, 2026 15:25
@slachiewicz
slachiewicz marked this pull request as ready for review November 22, 2026 18:04
@slachiewicz
slachiewicz marked this pull request as draft November 22, 2026 18:04
Split resource operations out of BuildContext into an additive API with a delegating default implementation, and deprecate addWarning and addError in favour of Messages.
@slachiewicz
slachiewicz marked this pull request as ready for review November 27, 2026 14:53

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant