Added existence check for libs directory
This commit is contained in:
parent
e9f2018afe
commit
b3620d8cfc
1 changed files with 10 additions and 7 deletions
17
build.gradle
17
build.gradle
|
@ -117,14 +117,17 @@ uploadArchives {
|
||||||
def list = []
|
def list = []
|
||||||
|
|
||||||
def dir = new File("build/libs/")
|
def dir = new File("build/libs/")
|
||||||
dir.eachFileRecurse (FileType.FILES) { file ->
|
|
||||||
//Add each file to the list
|
|
||||||
list << file
|
|
||||||
}
|
|
||||||
|
|
||||||
//Print the names of all of the output files
|
if (dir.exists() {
|
||||||
list.each {
|
dir.eachFileRecurse (FileType.FILES) { file ->
|
||||||
println it.getName()
|
//Add each file to the list
|
||||||
|
list << file
|
||||||
|
}
|
||||||
|
|
||||||
|
//Print the names of all of the output files
|
||||||
|
list.each {
|
||||||
|
println it.getName()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
println "--------------------"
|
println "--------------------"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue