Skip to content

Commit 415d12e

Browse files
committed
making sure gradlew file is executable before running the gradlew command.
1 parent 6d143df commit 415d12e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

scripts/dist.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,9 @@ def build_jdk_11_gradle():
250250
command = "gradlew"
251251

252252
if platform.system() == "Darwin":
253+
# make sure gradlew command is executable
254+
os.system("chmod +x " + os.getcwd() + "/" + folder + "/gradlew")
255+
253256
command = "./gradlew"
254257

255258
gradleres = run([command, "build", "-x", "test"], shell=SHELL, cwd=os.path.join(PROJ_LOCATION, folder),
@@ -275,6 +278,10 @@ def build_jdk_17_gradle():
275278
command = "gradlew"
276279

277280
if platform.system() == "Darwin":
281+
282+
# make sure gradlew command is executable
283+
os.system("chmod +x " + os.getcwd() + "/" + folder + "/gradlew")
284+
278285
command = "./gradlew"
279286

280287
gradleres = run([command, "build", "-x", "test"], shell=SHELL, cwd=os.path.join(PROJ_LOCATION, folder),

0 commit comments

Comments
 (0)