From f7903a206efccd8d725b9099316ffb20b868753d Mon Sep 17 00:00:00 2001 From: zhurlik Date: Mon, 15 Jun 2015 21:07:08 +0300 Subject: [PATCH] specify 'into' for copying to corresponded package --- src/main/groovy/com/github/zhurlik/JBossModulesPlugin.groovy | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/groovy/com/github/zhurlik/JBossModulesPlugin.groovy b/src/main/groovy/com/github/zhurlik/JBossModulesPlugin.groovy index d272d9d..10cdf3a 100644 --- a/src/main/groovy/com/github/zhurlik/JBossModulesPlugin.groovy +++ b/src/main/groovy/com/github/zhurlik/JBossModulesPlugin.groovy @@ -42,7 +42,9 @@ class JBossModulesPlugin implements Plugin { 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 ->