Skip to content

Commit

Permalink
Merge pull request #55 from ballerina-platform/runtime
Browse files Browse the repository at this point in the history
Enable copying of dependency caches and doc generation
  • Loading branch information
ldclakmal authored Nov 25, 2020
2 parents 06380c5 + 22449cc commit d49ed42
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
6 changes: 3 additions & 3 deletions websub-advanced-integration-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ task copyStdlibs(type: Copy) {
into("repo/balo") {
from "${artifactExtractedPath}/balo/"
}
// into("repo/cache") {
// from "${artifactExtractedPath}/cache"
// }
into("repo/cache") {
from "${artifactExtractedPath}/cache"
}
}
/* Copy WebSub module */
into("repo/balo/${packageOrg}/websub/${tomlVersion}") {
Expand Down
32 changes: 16 additions & 16 deletions websub-ballerina/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ task copyStdlibs(type: Copy) {
into("repo/balo") {
from "${artifactExtractedPath}/balo"
}
// into("repo/cache") {
// from "${artifactExtractedPath}/cache"
// }
into("repo/cache") {
from "${artifactExtractedPath}/cache"
}
}
}

Expand Down Expand Up @@ -262,19 +262,19 @@ task ballerinaBuild {

}
// Doc creation and packing
// exec {
// workingDir project.projectDir
// environment "JAVA_OPTS", "-DBALLERINA_DEV_COMPILE_BALLERINA_ORG=true"
// if (Os.isFamily(Os.FAMILY_WINDOWS)) {
// commandLine 'cmd', '/c', "$distributionBinPath/ballerina.bat doc --offline && exit %%ERRORLEVEL%%"
// } else {
// commandLine 'sh', '-c', "$distributionBinPath/ballerina doc --offline"
// }
// }
// copy {
// from file("$project.projectDir/target/apidocs/${packageName}")
// into file("$project.projectDir/build/docs_parent/docs/${packageName}")
// }
exec {
workingDir project.projectDir
environment "JAVA_OPTS", "-DBALLERINA_DEV_COMPILE_BALLERINA_ORG=true"
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
commandLine 'cmd', '/c', "$distributionBinPath/ballerina.bat doc && exit %%ERRORLEVEL%%"
} else {
commandLine 'sh', '-c', "$distributionBinPath/ballerina doc"
}
}
copy {
from file("$project.projectDir/target/apidocs/${packageName}")
into file("$project.projectDir/build/docs_parent/docs/${packageName}")
}
}

outputs.dir artifactCacheParent
Expand Down
6 changes: 3 additions & 3 deletions websub-generic-integration-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ task copyStdlibs(type: Copy) {
into("repo/balo") {
from "${artifactExtractedPath}/balo/"
}
// into("repo/cache") {
// from "${artifactExtractedPath}/cache"
// }
into("repo/cache") {
from "${artifactExtractedPath}/cache"
}
}
/* Copy WebSub module */
into("repo/balo/${packageOrg}/websub/${tomlVersion}") {
Expand Down

0 comments on commit d49ed42

Please sign in to comment.