Repository navigation
WriteBundleMojo to support file as a target - #313
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (3)
📝 WalkthroughWalkthroughAdds a ChangeswriteAsBundle file/directory output support
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@plugin/src/main/java/eu/maveniverse/maven/njord/plugin3/WriteBundleMojo.java`:
- Around line 56-57: The null check in the condition at line 56 only validates
against null values but does not account for empty or blank string values in the
file and directory parameters. Modify the condition to treat blank values (empty
strings or whitespace-only strings) as unset by using a method like isBlank() or
isEmpty() in addition to the null checks for both the file and directory
variables, ensuring that empty or blank parameter values are rejected just like
null values and preventing unintended writes to the current working directory
via Paths.get("").
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 5e11a488-4a2c-4dac-a5d4-cfe4912c6de4
📒 Files selected for processing (3)
core/src/main/java/eu/maveniverse/maven/njord/shared/impl/store/DefaultArtifactStoreWriter.javacore/src/main/java/eu/maveniverse/maven/njord/shared/store/ArtifactStoreWriter.javaplugin/src/main/java/eu/maveniverse/maven/njord/plugin3/WriteBundleMojo.java
3e1cb4e to
08c65c7
Compare
Signed-off-by: Olivier Lamy olamy@apache.org
Summary by CodeRabbit
storeis now optional; if omitted, the bundle uses the latest staged store name from the configured prefix.fileordirectoryto be set.fileis provided, it’s used as the output target (otherwisedirectoryis used).