getLog().info("Using locale list : " + getLocaleList());
env.setLocaleList(getLocaleList());
env.setLayerOptimize(getLayerOptimize());
env.build();
try {
UnArchiver ua = getArchiverManager().getUnArchiver(env.getTargetJar());
File resourceDir = new File(getProject().getBuild().getDirectory(), "/generated-resources/dojo");
FileUtils.forceMkdir(resourceDir);
ua.setSourceFile(env.getTargetJar());
ua.setDestDirectory(resourceDir);
ua.setOverwrite(true);
ua.extract();
} catch (IOException e) {
getLog().error("Failed to copy dojo release jar", e);
throw new MojoExecutionException("Failed to copy dojo release jar");
} catch (NoSuchArchiverException e) {
getLog().error("Failed to unarchive dojo release jar", e);