Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-1524

gradlew.bat/mvnw.bat should NOT be executable


    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.2.5.GA
    • None
    • team/eng
    • None

      If the gradle project is generated, the root directory listing has these gradle-wrapper related files:
      ls -la demo/gradlew*
      -rwxr-xr-x@ 1 morph staff 8070 Oct 2 21:47 demo/gradlew
      -rwxr-xr-x@ 1 morph staff 2763 Oct 2 21:47 demo/gradlew.bat
      The problem is that the second one, the bat file should not be executable, because it is auto-suggested in the shell to be executed, it raises inconvenience and requires manual fixing (via chmod). You can ensure and just list e.g. root directory of quarkus:
      ls -la quarkus/mvnw*
      -rwxr-xr-x 1 morph staff 10069 Oct 3 19:50 quarkus/mvnw
      rw-rr- 1 morph staff 6607 Oct 3 19:50 quarkus/mvnw.cmd
      The first file for *nix has the executable flag, the second file for Windows - does not.

      This PR addresses the issue.

      The same for maven wrapper bat executable.

            Unassigned Unassigned
            probinso_jira Quarkus JIRA Bot (Inactive)
            Fedor Dudinskii Fedor Dudinskii
            0 Vote for this issue
            2 Start watching this issue