Skip to content
This repository has been archived by the owner on Feb 8, 2019. It is now read-only.

Commit

Permalink
Added missing project level source packaging.
Browse files Browse the repository at this point in the history
  • Loading branch information
wisebaldone committed Dec 11, 2015
1 parent 612798c commit 2dee9a5
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
-----
Expand Down
57 changes: 56 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,59 @@ rat.doFirst {
println ' This task can take between 10 to 20 minutes. '
println '----------------------------------------------'
println ''
}
}

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

0 comments on commit 2dee9a5

Please sign in to comment.