|
@@ -81,14 +81,14 @@ task checkPlatformConfig {
|
|
|
description = "Downloads the NetBeans platform base and registers it in the SDK project if needed"
|
|
|
def platformFile = file("nbproject/private/platform-private.properties")
|
|
|
if(!platformFile.exists()){
|
|
|
- def netbeansFolder = file("../netbeans")
|
|
|
+ def netbeansFolder = file("netbeans")
|
|
|
if(!netbeansFolder.exists() || netbeansFolder.list().length == 0){
|
|
|
println "Downloading NetBeans Platform base, this only has to be done once.."
|
|
|
def f = file("netbeans.zip")
|
|
|
new URL(netbeansUrl).withInputStream{ i -> f.withOutputStream{ it << i }}
|
|
|
copy{
|
|
|
from zipTree(f)
|
|
|
- into "../"
|
|
|
+ into "."
|
|
|
}
|
|
|
f.delete()
|
|
|
}
|