Skip to content

fix(maven): use File.isAbsolute for cross-platform path detection#33195

Merged
FrozenPandaz merged 1 commit intomasterfrom
fix-maven-absolute-path-detection
Oct 23, 2025
Merged

fix(maven): use File.isAbsolute for cross-platform path detection#33195
FrozenPandaz merged 1 commit intomasterfrom
fix-maven-absolute-path-detection

Conversation

@FrozenPandaz
Copy link
Copy Markdown
Contributor

Current Behavior

The Maven plugin currently checks if a path is absolute by using outputFile.startsWith("/"). This only works on Unix-like systems and fails on Windows where absolute paths start with a drive letter (e.g., C:\).

Expected Behavior

The Maven plugin should correctly identify absolute paths on all platforms (Windows, macOS, Linux) using the platform-agnostic File.isAbsolute() method.

Related Issue(s)

N/A - This is a proactive bug fix for cross-platform compatibility.


🤖 Generated with Claude Code

@netlify
Copy link
Copy Markdown

netlify Bot commented Oct 23, 2025

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit 6de1018
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/68f9c0d16906ee0008cc142c
😎 Deploy Preview https://deploy-preview-33195--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@vercel
Copy link
Copy Markdown

vercel Bot commented Oct 23, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
nx-dev Ready Ready Preview Oct 23, 2025 5:59am

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented Oct 23, 2025

View your CI Pipeline Execution ↗ for commit 6de1018

Command Status Duration Result
nx affected --targets=lint,test,test-kt,build,e... ✅ Succeeded 4m 17s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 2m 49s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 3s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2025-10-23 05:54:56 UTC

Replaced string-based path checking (startsWith("/")) with File.isAbsolute()
for more robust cross-platform absolute path detection in the Maven plugin.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@FrozenPandaz FrozenPandaz merged commit 500a4c9 into master Oct 23, 2025
19 checks passed
@FrozenPandaz FrozenPandaz deleted the fix-maven-absolute-path-detection branch October 23, 2025 18:04
FrozenPandaz added a commit that referenced this pull request Oct 27, 2025
…3195)

## Current Behavior

The Maven plugin currently checks if a path is absolute by using
`outputFile.startsWith("/")`. This only works on Unix-like systems and
fails on Windows where absolute paths start with a drive letter (e.g.,
`C:\`).

## Expected Behavior

The Maven plugin should correctly identify absolute paths on all
platforms (Windows, macOS, Linux) using the platform-agnostic
`File.isAbsolute()` method.

## Related Issue(s)

<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

N/A - This is a proactive bug fix for cross-platform compatibility.

---

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
(cherry picked from commit 500a4c9)
@github-actions
Copy link
Copy Markdown
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants