diff --git a/tools/cldr-code/src/main/java/org/unicode/cldr/tool/GenerateAllCharts.java b/tools/cldr-code/src/main/java/org/unicode/cldr/tool/GenerateAllCharts.java index 8f4cc8cbcb0..a5ef8b1599b 100644 --- a/tools/cldr-code/src/main/java/org/unicode/cldr/tool/GenerateAllCharts.java +++ b/tools/cldr-code/src/main/java/org/unicode/cldr/tool/GenerateAllCharts.java @@ -1,5 +1,8 @@ package org.unicode.cldr.tool; +import java.io.File; +import java.io.IOException; + import org.unicode.cldr.util.CLDRPaths; import org.unicode.cldr.util.DateTimeFormats; import org.unicode.cldr.util.FileCopier; @@ -16,6 +19,13 @@ */ public class GenerateAllCharts { public static void main(String[] args) throws Exception { + final File mainDir = new File(CLDRPaths.CHART_DIRECTORY); + if (mainDir.mkdirs()) { + System.err.println("Created: " + mainDir); + } + if (!mainDir.isDirectory()) { + throw new IOException("Main dir doesn't exist: " + mainDir); + } FileCopier.copy(GenerateAllCharts.class, "index.css", CLDRPaths.CHART_DIRECTORY); FileCopier.copy( GenerateAllCharts.class, diff --git a/tools/cldr-code/src/main/java/org/unicode/cldr/tool/ToolConstants.java b/tools/cldr-code/src/main/java/org/unicode/cldr/tool/ToolConstants.java index 38d79d9132e..5d6abefb585 100644 --- a/tools/cldr-code/src/main/java/org/unicode/cldr/tool/ToolConstants.java +++ b/tools/cldr-code/src/main/java/org/unicode/cldr/tool/ToolConstants.java @@ -40,7 +40,7 @@ public enum ChartStatus { .map(x -> VersionInfo.getInstance(x)) .collect(Collectors.toList())); - public static final String DEV_VERSION = "44"; + public static final String DEV_VERSION = "45"; public static final VersionInfo DEV_VERSION_VI = VersionInfo.getInstance(DEV_VERSION); public static final Set CLDR_RELEASE_VERSION_SET =