compiler.setPackaging("pom");
// Create a list of all libs that should belong to the Flex SDK compiler.
final File directory = new File(rootSourceDirectory, "lib");
if(!directory.exists() || !directory.isDirectory()) {
throw new ConverterException("Compiler directory does not exist.");
}
final List<File> files = new ArrayList<File>();
files.addAll(Arrays.asList(directory.listFiles(new FlexCompilerFilter())));
// Add all jars in the "external" directory.