badass-jlink-plugin icon indicating copy to clipboard operation
badass-jlink-plugin copied to clipboard

LICENSE file clash with license directory on Windows

Open vardlokkur opened this issue 1 year ago • 3 comments

          @siordache I have similar problem on windows, getting error:
* What went wrong:
Execution failed for task ':prepareMergedJarsDir'.
> Failed to copy C:\.........\build\jlinkbase\tmpjars\license\LICENSE to C:\................\build\jlinkbase\mergedjars\license\LICENSE due to C:\...............\build\jlinkbase\mergedjars\license\LICENSE

I tried: jarExclude("**/license/**", "**/LICENSE*") option for jlink task but it doesn't help at all :( There is a file named LICENSE in target directory (mergedjars), and when your plugin tries to copy directory with license name it clashes with the existing file.

Originally posted by @vardlokkur in https://github.com/beryx/badass-jlink-plugin/issues/186#issuecomment-2454779834

vardlokkur avatar Nov 04 '24 13:11 vardlokkur

The same problem can be observed on OSX with case-insensitive file system (default one)

vardlokkur avatar Nov 05 '24 07:11 vardlokkur

@vardlokkur can you provde a minimal example project (maybe a hello world on your GH) that reproduces the problem?

xzel23 avatar Nov 06 '24 11:11 xzel23

@vardlokkur Hi, just a reminder that I need a minimal example project that reproduces this issue and information on what system the problem occurs on with that project. Otherwise I will close this issue.

xzel23 avatar Jan 03 '25 15:01 xzel23