Skip to content

Could not remove legal directory. Only on mac and linux? #328

@Osiris-Team

Description

@Osiris-Team

I'm submitting a…

  • bug report
  • feature request
  • other

Short description of the issue/suggestion:
When trying to package on mac: Caused by: java.io.IOException: Unable to delete directory /Users/runner/work/Desku-Gradle-Starter-App/Desku-Gradle-Starter-App/desktop/build/desktop/desktop.app/Contents/PlugIns/jre.jre/Contents/Home/legal. at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1127) at io.github.fvarrui.javapackager.utils.FileUtils.removeFolder(FileUtils.java:247) ... 121 more
Full build log: https://github.com/Osiris-Team/Desku-Gradle-Starter-App/actions/runs/5032033612/jobs/9025447503

When trying to package on linux/ubuntu: Caused by: java.io.IOException: Unable to delete directory /home/runner/work/Desku-Gradle-Starter-App/Desku-Gradle-Starter-App/desktop/build/desktop/jre/legal. at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1127) at io.github.fvarrui.javapackager.utils.FileUtils.removeFolder(FileUtils.java:247) ... 149 more.
Full build log: https://github.com/Osiris-Team/Desku-Gradle-Starter-App/actions/runs/5032033612/jobs/9025447469

It's a multi-module project: https://github.com/Osiris-Team/Desku-Gradle-Starter-App

Steps to reproduce the issue/enhancement:

release.yml contains the commands executed for each platform: https://github.com/Osiris-Team/Desku-Gradle-Starter-App/blob/master/.github/workflows/release.yml

Relevant build.gradle file: https://github.com/Osiris-Team/Desku-Gradle-Starter-App/blob/master/desktop/build.gradle
Note that on windows that build.gradle file works without issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfixedIssue fixed and release pendingmergedChanges merged into devel branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions