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") }