Fixed fatmain bug in build.gradle-template

android-scanner
Tal Moran 2016-11-09 15:21:16 +02:00
parent 63e26fdc16
commit 97f52bfd82
1 changed files with 10 additions and 8 deletions

View File

@ -131,17 +131,19 @@ if (project.hasProperty('mainClassName') && (mainClassName != null)) {
destinationDir = buildDir destinationDir = buildDir
def fatMain = hasProperty('fatmain') ? fatmain : mainClassName def fatMain
if (this.hasProperty('fatmain')) {
fatMain = fatmain
appendix = "fat-${fatMain}"
} else {
fatMain = mainClassName
appendix = "fat"
}
applicationClass fatMain applicationClass fatMain
def testJar = hasProperty('test') def testJar = this.hasProperty('test')
if (hasProperty('fatmain')) {
appendix = "fat-${fatMain}"
} else {
appendix = "fat"
}
if (testJar) { if (testJar) {
from sourceSets.test.output from sourceSets.test.output