Skip to content

Commit

Permalink
Merge pull request #120 from AzeemMuzammil/fix-undefined-dist-bin-path
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisaruGuruge authored Nov 15, 2023
2 parents cab27fe + 4076179 commit 0263dd8
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 @@ -64,6 +64,7 @@ class BallerinaPlugin implements Plugin<Project> {
def graalvmFlag = ''
def buildOnDocker = false
def ballerinaDockerTag = ''
def distributionBinPath = project.projectDir.absolutePath + "/build/jballerina-tools-${ballerinaExtension.langVersion}/bin"

if (project.version.matches(project.ext.timestampedVersionRegex)) {
def splitVersion = project.version.split('-')
Expand Down Expand Up @@ -311,7 +312,6 @@ class BallerinaPlugin implements Plugin<Project> {
commandLine 'sh', '-c', "$balPackWithDocker"
}
} else {
String distributionBinPath = project.projectDir.absolutePath + "/build/jballerina-tools-${ballerinaExtension.langVersion}/bin"
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
commandLine 'cmd', '/c', "$balJavaDebugParam $distributionBinPath/bal.bat pack --target-dir ${balBuildTarget} --offline ${debugParams} && exit %%ERRORLEVEL%%"
} else {
Expand Down Expand Up @@ -450,7 +450,6 @@ class BallerinaPlugin implements Plugin<Project> {
commandLine 'sh', '-c', "$balTestWithDocker"
}
} else {
String distributionBinPath = project.projectDir.absolutePath + "/build/jballerina-tools-${ballerinaExtension.langVersion}/bin"
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
commandLine 'cmd', '/c', "${balJavaDebugParam} ${distributionBinPath}/bal.bat test --offline ${graalvmFlag} ${testCoverageParams} ${groupParams} ${disableGroups} ${debugParams} && exit %%ERRORLEVEL%%"
} else {
Expand Down

0 comments on commit 0263dd8

Please sign in to comment.