Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

include perl and python driver libraries in build when allImage is sp…

…ecified
  • Loading branch information...
commit a0d534cfa4eaf7f38ee51e067fe33319a52f9096 1 parent f5c7c16
Bruce Robbins authored
Showing with 19 additions and 5 deletions.
  1. +19 −5 build.gradle
View
24 build.gradle
@@ -149,8 +149,8 @@ dependencies {
binDistImage = copySpec {
/* Include all the resources. */
- from project(':s4-core').sourceSets.main.resources
-
+ from project(':s4-core').sourceSets.main.resources
+
[project('s4-core'), project('s4-driver')].collect { project ->
into (project.name + "/lib") {
from project.configurations.runtime
@@ -172,11 +172,17 @@ allDistImage = copySpec {
}
switch(proj.name) {
case "s4-core":
- break
+ break
case "s4-driver":
- break
-
+ into ("${proj.name}/lib/python") {
+ from ("${proj.name}/python/")
+ }
+ break
+ into ("${proj.name}/lib/perl") {
+ from ("${proj.name}/perl/")
+ }
+ break
case "s4-example-driver":
into("s4-driver") {
from proj.sourceSets.main.resources
@@ -244,6 +250,14 @@ task allImage(type: Copy, dependsOn: s4Javadoc) {
with allDistImage
}
+
+allImage << {
+ // we need this because copyTask's fileMode property is not honored
+ ant.chmod(dir: "$buildDir/s4-image/scripts", perm: "u+x", includes: "*")
+ ant.chmod(dir: "$buildDir/s4-image/s4-tools-loadgenerator/scripts", perm: "u+x", includes: "*")
+ ant.chmod(dir: "$buildDir/s4-image/s4-driver/scripts", perm: "u+x", includes: "*")
+}
+
task binTgz( type: Tar) {
description = "Build binary bundle in GZIP format"
classifier = 'bin'
Please sign in to comment.
Something went wrong with that request. Please try again.