remove the find command and use gradle's replace method (#900)

This commit is contained in:
David Howell 2017-03-11 06:07:42 +10:30 committed by Nabil Hachicha
parent d2a2b9c18a
commit 84ad9f7283
1 changed files with 2 additions and 10 deletions

View File

@ -83,16 +83,8 @@ task downloadRealmCore(type: Download) {
task prepareRealmCore(dependsOn: downloadRealmCore, type:Copy) {
from tarTree(downloadRealmCore.dest)
into "$coreDownloadDir/core"
//Fixing Core file naming 'arm-*' to 'armeabi-*'
doLast {
exec {
workingDir = "$coreDownloadDir/core"
commandLine = [
"bash",
"-c",
"find . -name \"*-arm-*\" -exec sh -c \"echo {} | sed -e s/arm/armeabi/g | xargs mv {} \" \\;"
]
}
rename { String fileName ->
fileName.replace("-arm-", "-armeabi-")
}
}