Commit ea2f80d9 authored by Vitaliy Vashchenko's avatar Vitaliy Vashchenko

#884 fixed wrong upload address.

parent 744bb607
......@@ -456,11 +456,11 @@ task prepareHdPack(dependsOn: [':util:checksum:runHdChecksum', ':util:checksum:r
def data = new URL(project.assetsDownloadUrl).getText()
rootProject.ext.assetsHdPackDir.eachFile() { file ->
String fileName = file.getName()
String[] fileNameParts = fileName.split("_SNAPSHOT");
String[] fileNameParts = fileName.split("_SNAPSHOT\\.");
String packageName = "${fileNameParts[0]}_${assetsHdChecksum[fileNameParts[0]]}${fileNameParts[1]}";
if (!data.contains(packageName)) {
String assetsUploadPath = "${project.assetsDebugURLPart}${packageName}"
String assetsUploadPath = "${project.assetsUploadURL}${packageName}"
println "AssetsUploader: UPLOADING FILE: ${project.assetsDebugURLPart}${packageName}"
task("${name}_${packageName}", type: Exec) {
workingDir "${rootProject.projectDir}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment