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

gradlew.bat/mvnw.bat should NOT be executable

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            probinso_jira Quarkus JIRA Bot
            Fedor Dudinskii Fedor Dudinskii
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: