Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-61787

Gradle "compileJSP" task may sometimes fail on case-insensitive file systems

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 7.0.0 Beta 2
    • Fix Version/s: 7.0.0 Beta 2
    • Component/s: Dev Tools
    • Labels:
      None

      Description

      Some module jars (com.liferay.portal.security.sso.openid-*.jar, for example) contain files and directories which differs only by case, like a file named LICENSE and a directory named license. When trying to run gradlew compileJSP for these modules on a case-insensitive file system (like NTFS on Windows or a case-insensitive HFS+ on Mac), the unzipJar task fails with the following error:

      at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
       at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
       at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
       at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30)
       at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
       at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
      Caused by: org.gradle.api.GradleException: Could not copy zip entry /Users/brian/dev/projects/github/liferay-portal/tools/sdk/dist/com.liferay.portal.security.sso.openid-1.0.0.jar!license/LICENSE to '/Users/brian/dev/projects/github/liferay-portal/modules/portal-security/portal-security-sso-openid/build/tmp/expandedArchives/com.liferay.portal.security.sso.openid-1.0.0.jar_3nzel2ep7vx0b1vdrkbn2oc71/license/LICENSE'.
       at org.gradle.api.internal.file.AbstractFileTreeElement.copyTo(AbstractFileTreeElement.java:79)
       at org.gradle.api.internal.file.archive.ZipFileTree$DetailsImpl.getFile(ZipFileTree.java:126)
       at org.gradle.api.internal.file.AbstractFileTree$1.visitFile(AbstractFileTree.java:37)
       at org.gradle.api.internal.file.AbstractFileTree$FilteredFileTree$1.visitFile(AbstractFileTree.java:143)
       at org.gradle.api.internal.file.archive.ZipFileTree.visit(ZipFileTree.java:91)
       ... 66 more
      Caused by: org.gradle.api.UncheckedIOException: Cannot create directory '/Users/brian/dev/projects/github/liferay-portal/modules/portal-security/portal-security-sso-openid/build/tmp/expandedArchives/com.liferay.portal.security.sso.openid-1.0.0.jar_3nzel2ep7vx0b1vdrkbn2oc71/license' as it already exists, but is not a directory
       at org.gradle.util.GFileUtils.mkdirs(GFileUtils.java:268)
       at org.gradle.api.internal.file.AbstractFileTreeElement.copyTo(AbstractFileTreeElement.java:73)
       ... 70 more
      

        Attachments

          Activity

            People

            Assignee:
            andrea.digiorgi Andrea Di Giorgi (Inactive)
            Reporter:
            andrea.digiorgi Andrea Di Giorgi (Inactive)
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              4 years, 46 weeks, 5 days ago

                Packages

                Version Package
                7.0.0 Beta 2