Permalink
Browse files

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

…ecified
  • Loading branch information...
1 parent f5c7c16 commit a0d534cfa4eaf7f38ee51e067fe33319a52f9096 Bruce Robbins committed Jul 7, 2011
Showing with 19 additions and 5 deletions.
  1. +19 −5 build.gradle
View
@@ -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'

0 comments on commit a0d534c

Please sign in to comment.