RFR: 2452: Client CLI build fails on Windows

Erik Joelsson erikj at openjdk.org
Mon Mar 3 23:30:24 UTC 2025


Building the default target "local" fails on Windows with the error message below. I think this started happening when we upgraded the Gradle version last. This is the target that the automatic CLI build/installation runs.


* What went wrong:
Execution failed for task ':local'.
> Cannot access a file in the destination directory. Copying to a directory which contains unreadable content is not supported. Declare the task as untracked by using Task.doNotTrackState(). For more information, please refer to https://docs.gradle.org/8.5/userguide/incremental_build.html#disable-state-tracking in the Gradle documentation.
 > Failed to create MD5 hash for file content.


I'm working around/fixing it by moving the output dir of the `local` task to its own subdir in the project build dir. I'm also adding the target `local` explicitly to the GHA tasks so that this kind of problem gets caught there. I intentionally did this in a separate commit to demonstrate that it would fail for this branch/PR.

-------------

Commit messages:
 - Empty
 - Unpack cli into subdir of build
 - Add 'local' build target to GHA

Changes: https://git.openjdk.org/skara/pull/1707/files
  Webrev: https://webrevs.openjdk.org/?repo=skara&pr=1707&range=00
  Issue: https://bugs.openjdk.org/browse/SKARA-2452
  Stats: 7 lines in 3 files changed: 0 ins; 0 del; 7 mod
  Patch: https://git.openjdk.org/skara/pull/1707.diff
  Fetch: git fetch https://git.openjdk.org/skara.git pull/1707/head:pull/1707

PR: https://git.openjdk.org/skara/pull/1707


More information about the skara-dev mailing list