Skip to content

Commit

Permalink
specify 'into' for copying to corresponded package
Browse files Browse the repository at this point in the history
  • Loading branch information
zhurlik committed Jun 15, 2015
1 parent 14190b1 commit f7903a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/groovy/com/github/zhurlik/JBossModulesPlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ class JBossModulesPlugin implements Plugin<Project> {
project.jbossrepos.each { JBossServer server ->
project.distributions.create(server.name)
project.distributions[server.name].baseName = server.name
project.distributions[server.name].contents.from([project.buildDir.path, 'install', server.name, 'modules'].join(separator))
project.distributions[server.name].contents.from([project.buildDir.path, 'install', server.name, 'modules'].join(separator)) {
into 'modules'
}

// {server.name}DistTar/Zip tasks depend on checkModules to be able to create modules
project.tasks.findAll { it.name.startsWith(server.name + 'Dist') }.each { t ->
Expand Down

0 comments on commit f7903a2

Please sign in to comment.