Don't attempt to create the smali.jar/baksmali.jar symlinks on windows.

Unsurprisingly, ant.symlink is unsupported on windows.
This commit is contained in:
Ben Gruver 2013-11-10 22:19:48 -08:00
parent b0295be60c
commit 318954d56b
2 changed files with 6 additions and 2 deletions

View File

@ -56,9 +56,11 @@ jar {
}
doLast {
if (!System.getProperty("os.name").toLowerCase().contains("windows")) {
ant.symlink(link: file("${destinationDir}/baksmali.jar"), resource: archivePath, overwrite: true)
}
}
}
task proguard(type: JavaExec, dependsOn: jar) {
def outFile = jar.destinationDir.getPath() + '/' + jar.baseName + '-' + jar.version + '-small' + '.' + jar.extension

View File

@ -142,9 +142,11 @@ jar {
}
doLast {
if (!System.getProperty("os.name").toLowerCase().contains("windows")) {
ant.symlink(link: file("${destinationDir}/smali.jar"), resource: archivePath, overwrite: true)
}
}
}
processResources.inputs.property('version', version)
processResources.expand('version': version)