You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by ma...@apache.org on 2015/01/15 23:16:13 UTC
svn commit: r1652287 -
/felix/sandbox/pderop/dependencymanager/release/build.gradle
Author: marrs
Date: Thu Jan 15 22:16:13 2015
New Revision: 1652287
URL: http://svn.apache.org/r1652287
Log:
Added a binary release zip to the script. Also did some really small formatting.
Modified:
felix/sandbox/pderop/dependencymanager/release/build.gradle
Modified: felix/sandbox/pderop/dependencymanager/release/build.gradle
URL: http://svn.apache.org/viewvc/felix/sandbox/pderop/dependencymanager/release/build.gradle?rev=1652287&r1=1652286&r2=1652287&view=diff
==============================================================================
--- felix/sandbox/pderop/dependencymanager/release/build.gradle (original)
+++ felix/sandbox/pderop/dependencymanager/release/build.gradle Thu Jan 15 22:16:13 2015
@@ -80,11 +80,11 @@ task makeStaging << {
zipfileset(dir: '..', prefix: topdir+"-src", includes: '*.gradle,*.properties,README,NOTICE,LICENSE')
new File('.').eachFile {
if(new File(it, 'bnd.bnd').exists()) {
- def bndProject = workspace.getProject(it.name)
- if (! bndProject.isNoBundles()) {
- zipfileset(dir: "../${bndProject.name}", prefix: topdir+"-src/${bndProject.name}",
- includes: "*.gradle,.project,.classpath,.settings/**,src/**,test/**,*.bnd,*.bndrun,run-*/conf/**,resources/**")
- }
+ def bndProject = workspace.getProject(it.name)
+ if (! bndProject.isNoBundles()) {
+ zipfileset(dir: "../${bndProject.name}", prefix: topdir+"-src/${bndProject.name}",
+ includes: "*.gradle,.project,.classpath,.settings/**,src/**,test/**,*.bnd,*.bndrun,run-*/conf/**,resources/**")
+ }
}
}
}
@@ -95,6 +95,17 @@ task makeStaging << {
ant.zipfileset(dir: '../cnf', prefix: topdir+"-deps/cnf",
includes: 'buildrepo/**,localrepo/**,releaserepo/**,plugins/**,gradle/**')
}
+
+ // Package binaries as a simple collection of bundles.
+ ant.zip(destfile: "staging/"+topdir+"-bin.zip") {
+ ant.mappedresources() {
+ ant.fileset(dir: '..', includes: '*/generated/*.jar')
+ ant.chainedmapper() {
+ ant.flattenmapper()
+ ant.globmapper(from: '*', to: topdir+'-bin/*')
+ }
+ }
+ }
}
// Sign staging directory