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
def fatMain = hasProperty('fatmain') ? fatmain : mainClassName
def fatMain
if (this.hasProperty('fatmain')) {
fatMain = fatmain
appendix = "fat-${fatMain}"
} else {
fatMain = mainClassName
appendix = "fat"
}
applicationClass fatMain
def testJar = hasProperty('test')
if (hasProperty('fatmain')) {
appendix = "fat-${fatMain}"
} else {
appendix = "fat"
}
def testJar = this.hasProperty('test')
if (testJar) {
from sourceSets.test.output