force 'license' dir presence, event if empty in both source and destination locations

This commit is contained in:
Eugene Zhuravlev
2015-06-12 12:45:14 +02:00
parent e91635109c
commit f51820a27e
+6 -2
View File
@@ -138,6 +138,12 @@ def layoutAll(Map args, String home, String out, Paths _paths = null, buildJps =
notifyArtifactBuilt(paths.artifacts_jps)
}
// in case the license directory is absent, create it
mkdir(dir: "${home}/license")
[paths.distWin, paths.distAll, paths.distUnix, paths.distMac].each {
ant.mkdir(dir: it + "/license")
}
layout(paths.distAll) {
dir("bin") {
fileset(dir: "${home}/bin") {
@@ -145,8 +151,6 @@ def layoutAll(Map args, String home, String out, Paths _paths = null, buildJps =
}
}
ant.mkdir(dir: "${home}/license") // in case the source license directory is absent, create it
dir("license") {
fileset(dir: "${home}/license")
}