From f51820a27e13654faf844f78aa84f281ca7f37a1 Mon Sep 17 00:00:00 2001 From: Eugene Zhuravlev Date: Fri, 12 Jun 2015 12:45:14 +0200 Subject: [PATCH] force 'license' dir presence, event if empty in both source and destination locations --- build/scripts/dist.gant | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/build/scripts/dist.gant b/build/scripts/dist.gant index 52b48afa2cec..3be716082a8c 100644 --- a/build/scripts/dist.gant +++ b/build/scripts/dist.gant @@ -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") }