Skip to content

Commit

Permalink
put sane base dir into distribution zip, so it doesn't stomp over whe…
Browse files Browse the repository at this point in the history
…rever it's unziped
  • Loading branch information
tomdcc committed Mar 26, 2012
1 parent 7a28630 commit 2db9e26
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,30 @@ task dist(type: Zip, dependsOn: [':sham:javadoc', ':sham:jar', 'doc/guide:compil
def shamProject = project(':sham')
def docProject = project(':doc/guide')
archiveName = "$buildDir/sham-${shamProject.version}.zip"
def archiveBaseDir = "sham-${shamProject.version}"

from(projectDir) {
include "LICENSE"
into archiveBaseDir
}
from(new File(projectDir, 'doc/dist')) {
include "README.TXT"
into archiveBaseDir
}
from(new File(shamProject.buildDir, 'libs')) {
include "sham-${shamProject.version}.jar"
into archiveBaseDir
}
from(new File(shamProject.projectDir, 'src/main')) {
include '**/*'
into 'src'
into "$archiveBaseDir/src"
}
from(new File(shamProject.buildDir, 'docs/javadoc')) {
include '**/*'
into 'doc/api'
into "$archiveBaseDir/doc/api"
}
from(new File(docProject.buildDir, "manual-compiled")) {
include '**/*'
into "doc/guide"
into "$archiveBaseDir/doc/guide"
}
}

0 comments on commit 2db9e26

Please sign in to comment.