Skip to content

Add a Path-based Resources API - #159

Draft
slachiewicz wants to merge 1 commit into
masterfrom
agent/resources-api
Draft

slachiewicz wants to merge 1 commit into
masterfrom
agent/resources-api

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

Implements #76: a new org.codehaus.plexus.build.resources.Resources interface with hasDelta, refresh, newOutputStream, isUptodate, getPath, markDerived and copy. DefaultResources delegates to BuildContext so adopters need no changes from their build tool. BuildContext.addWarning and addError now carry @Deprecated pointing at the Messages API.

The API contract documents that hasDelta is a best-effort hint and that isUptodate is preferred for input/output pairs.

Verified: mvn -B -o spotless:check test → 47 tests, 0 failures.

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

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 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

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