我是Ivy存储库的新手。
在gradle构建中,我将Ivy存储库定义为:
repositories {
ivy {
url "http://[example].com/artifactory/list/eulas/"
layout 'pattern', {
ivy "[organisation]/[module]/[revision]/ivy.xml"
m2compatible = true
}
}
}
}
我要下载http://[example].com/artifactory/list/eulas/[organisation]/[module]/[revision]/下列出的所有html文件,并将它们放入$ ASSEMBLEDIR
我该如何做到最好?
如果我将gradle.build条目放入
repositories {
ivy {
url "http://[example].com/artifactory/list/eulas/"
layout 'pattern', {
ivy "[organisation]/[module]/[revision]/ivy.xml"
artifact "[organisation]/[module]/[revision]/[revision]-AR.html"
m2compatible = true
}
}
}
configurations {
ivyFiles
}
task downloadIvyFiles(type: Copy) {
from configurations.ivyFiles
into "${assembleDir}"
}
I'm able to download only one file in the name [module]-[revision]-AR.html. I need to rename the files downloaded, for example [module]-[revision]-AR.html to ar_AR.html using gradle task.