Skip to content

Commit

Permalink
Merge pull request #160 from ayeshLK/main
Browse files Browse the repository at this point in the history
Refactor log collection logic
  • Loading branch information
ayeshLK authored Jul 1, 2024
2 parents b1b745e + b19251f commit aa12928
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/groovy/io/ballerina/plugin/BallerinaPlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,9 @@ class BallerinaPlugin implements Plugin<Project> {
"""
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
println "Executing command on windows: ${balPackWithDocker}"
commandLine 'cmd', '/c', "$balPackWithDocker && exit %%ERRORLEVEL%%"
standardOutput = outStream
errorOutput = errStream
// commandLine 'cmd', '/c', "$balPackWithDocker && exit %%ERRORLEVEL%%"
commandLine 'cmd', '/c', "cd $projectDirectory.name && bal pack --target-dir ${balBuildTarget}"
} else {
commandLine 'sh', '-c', "$balPackWithDocker"
}
Expand Down

0 comments on commit aa12928

Please sign in to comment.