Added missing project level source packaging.
Project: http://git-wip-us.apache.org/repos/asf/incubator-wave/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-wave/commit/2dee9a5b Tree: http://git-wip-us.apache.org/repos/asf/incubator-wave/tree/2dee9a5b Diff: http://git-wip-us.apache.org/repos/asf/incubator-wave/diff/2dee9a5b Branch: refs/heads/master Commit: 2dee9a5badb67ba08c42c7172043e0875856cda3 Parents: 612798c Author: wisebaldone <[email protected]> Authored: Fri Dec 11 18:40:39 2015 +1000 Committer: wisebaldone <[email protected]> Committed: Fri Dec 11 18:40:39 2015 +1000 ---------------------------------------------------------------------- .gitignore | 2 ++ README.md | 4 ++++ build.gradle | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 62 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-wave/blob/2dee9a5b/.gitignore ---------------------------------------------------------------------- diff --git a/.gitignore b/.gitignore index 7581761..74cbd54 100755 --- a/.gitignore +++ b/.gitignore @@ -45,6 +45,8 @@ wave/war/WEB-INF/ wave/war/webclient/ wave/war/org* pst/build/ +apache-wave-source.zip +apache-wave-source.tar ### Reports reports/ ### Generated Sources http://git-wip-us.apache.org/repos/asf/incubator-wave/blob/2dee9a5b/README.md ---------------------------------------------------------------------- diff --git a/README.md b/README.md index a1a29b4..7eec122 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,10 @@ Distribution Tasks: - **createDist**: builds the zip and tar file for distribution. - **createDistZip**: builds the zip for distribution. - **createDistTar**: builds the tar for distribution. +- **createDistSource**: builds the zip and tar file for distributing the source. +- **createDistSourceZip**: builds the zip for distributing the source. +- **createDistSourceTar**: builds the tar for distributing the source. + Build ----- http://git-wip-us.apache.org/repos/asf/incubator-wave/blob/2dee9a5b/build.gradle ---------------------------------------------------------------------- diff --git a/build.gradle b/build.gradle index 2453caa..2f6791f 100644 --- a/build.gradle +++ b/build.gradle @@ -78,4 +78,59 @@ rat.doFirst { println ' This task can take between 10 to 20 minutes. ' println '----------------------------------------------' println '' -} \ No newline at end of file +} + +task createDistSourceZip(type: Zip) { + baseName = "apache-wave-source" + from('./') { + into '' + } + excludes = [ + 'apache-wave-source.zip', + 'apache-wave-source.tar', + '.gradle/', + '.git/', + '.vagrant/', + '*/build/*', + '*/_*', + '*/gwt-unitCache/', + '*/*.iml', + '*/*.iws', + '*/*.ipr', + 'reports/', + ] +} + +task createDistSourceTar(type: Tar) { + baseName = "apache-wave-source" + from('./') { + into '' + } + excludes = [ + 'apache-wave-source.zip', + 'apache-wave-source.tar', + '.gradle/', + '.git/', + '.vagrant/', + '*/build/*', + '*/_*', + '*/gwt-unitCache/', + '*/*.iml', + '*/*.iws', + '*/*.ipr', + 'reports/', + ] +} + +task createDistSource() { + doFirst { + println '' + println '--------------------------------------------------------' + println ' Creating Deployment Source ' + println ' Zip and Tar files available in root directory. ' + println '--------------------------------------------------------' + println '' + } +} + +createDistSource.dependsOn createDistSourceZip, createDistSourceTar \ No newline at end of file
