Skip to content

Commit

Permalink
Fixing issue with not required jar files for modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
tHerrmann committed Sep 28, 2013
1 parent 7600fcf commit 2fe4e91
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,18 @@ allModuleNames.split(',').each{ moduleName ->
def requiresJar = false
// check if there are any java packages to include into the module's jar
modulePackages.split(',').each{ pack ->
if (isExternal.toBoolean() && file("${external_directories}/src-modules/"+ pack.replaceAll('\\.','/')).exists() || file("${projectDir}/src-modules/"+ pack.replaceAll('\\.','/')).exists()){
requiresJar = true
def packageFolder
if (isExternal.toBoolean()){
packageFolder= file("${external_directories}/src-modules/"+ pack.replaceAll('\\.','/'))
}else{
packageFolder= file("${projectDir}/src-modules/"+ pack.replaceAll('\\.','/'))
}
if (packageFolder.exists()&&packageFolder.isDirectory()){
packageFolder.listFiles().each{ file ->
if (file.isFile()){
requiresJar = true
}
}
}
}

Expand Down Expand Up @@ -278,7 +288,6 @@ allModuleNames.split(',').each{ moduleName ->
into "/system/modules/${moduleName}/resources/"
}
}
// TODO: set the module version to match the manifest.xml
baseName moduleName
doFirst {
println '======================================================'
Expand Down

0 comments on commit 2fe4e91

Please sign in to comment.