package com.intellij.flex.compiler;
import flex2.compiler.config.ConfigurationException;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
<BUG>public class FlexCompilerUtil {
public static void ensureFileCanBeCreated(final File file) throws ConfigurationException {</BUG>
if (file.isDirectory()) {
throw new ConfigurationException(file + " is a directory");
}

package com.intellij.flex.compiler;
import flex2.compiler.config.ConfigurationException;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
public class FlexCompilerUtil {
private static final String LOCALE = "{locale}";
public static void ensureFileCanBeCreated(final File file) throws ConfigurationException {
if (file.isDirectory()) {
throw new ConfigurationException(file + " is a directory");
}
