SDK Build: ensure netbeans folder is not empty
For some reason Travis-CI will create folders that were requested to be cached, thus causing the build to fail.
This commit is contained in:
parent
cd1d145005
commit
b7af06e41c
@ -48,7 +48,7 @@ task checkPlatformConfig {
|
|||||||
def platformFile = file("nbproject/private/platform-private.properties")
|
def platformFile = file("nbproject/private/platform-private.properties")
|
||||||
if(!platformFile.exists()){
|
if(!platformFile.exists()){
|
||||||
def netbeansFolder = file("../netbeans")
|
def netbeansFolder = file("../netbeans")
|
||||||
if(!netbeansFolder.exists()){
|
if(!netbeansFolder.exists() || netbeansFolder.list().length == 0){
|
||||||
println "Downloading NetBeans Platform base, this only has to be done once.."
|
println "Downloading NetBeans Platform base, this only has to be done once.."
|
||||||
def f = file("netbeans.zip")
|
def f = file("netbeans.zip")
|
||||||
new URL(netbeansUrl).withInputStream{ i -> f.withOutputStream{ it << i }}
|
new URL(netbeansUrl).withInputStream{ i -> f.withOutputStream{ it << i }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user