Skip to content

Commit

Permalink
Add log to print docker-command on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeshLK committed Jul 1, 2024
1 parent e334833 commit e463d49
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 e463d49

Please sign in to comment.