Skip to content

Pass source path to the Eclipse compiler - #546

Merged
slachiewicz merged 1 commit into
masterfrom
agent/eclipse-sourcepath
Nov 18, 2026
Merged

slachiewicz merged 1 commit into
masterfrom
agent/eclipse-sourcepath

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

Fixes #543.

EclipseJavaCompiler now passes -sourcepath from the configured source locations, matching JavacCompiler. Without it, a compile restricted to a subset with <includes> could not resolve sibling sources and annotation processors saw no SOURCE_PATH location. A regression test compiles a subset that references another source in the same root.

JavacCompiler already passes -sourcepath from the configured source locations. Without it, ECJ cannot resolve sibling sources when a compile is restricted to a subset with includes, and annotation processors see no SOURCE_PATH location.
@slachiewicz slachiewicz added the bug Something isn't working label Nov 18, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review November 18, 2026 20:56
@slachiewicz
slachiewicz merged commit 03f9eda into master Nov 18, 2026
27 of 28 checks passed
@slachiewicz
slachiewicz deleted the agent/eclipse-sourcepath branch November 18, 2026 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

plexus-compiler-eclipse does not pass the source roots as -sourcepath (plexus-compiler-javac does)

1 participant