Skip to content

Commit

Permalink
Merge pull request #155 from ayeshLK/main
Browse files Browse the repository at this point in the history
Add log to print docker-command on windows
  • Loading branch information
ayeshLK authored Jul 1, 2024
2 parents b4b781e + e463d49 commit 8f6d41f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/groovy/io/ballerina/plugin/BallerinaPlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ class BallerinaPlugin implements Plugin<Project> {
bal pack --target-dir ${balBuildTarget}"
"""
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
println "Executing command on windows: ${balPackWithDocker}"
commandLine 'cmd', '/c', "$balPackWithDocker && exit %%ERRORLEVEL%%"
} else {
commandLine 'sh', '-c', "$balPackWithDocker"
Expand Down

0 comments on commit 8f6d41f

Please sign in to comment.