*
* @throws ConverterException
*/
protected void generateCompilerArtifacts() throws ConverterException {
// Create the root artifact.
final MavenArtifact compiler = new MavenArtifact();
compiler.setGroupId("com.adobe.air");
compiler.setArtifactId("compiler");
compiler.setVersion(airSdkVersion);
compiler.setPackaging("pom");
// Create a list of all libs that should belong to the AIR 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 AirCompilerFilter())));
// Generate artifacts for every jar in the input directories.
for(final File sourceFile : files) {
final MavenArtifact artifact = resolveArtifact(sourceFile, "com.adobe.air.compiler", airSdkVersion);
compiler.addDependency(artifact);
}
// Write this artifact to file.
writeArtifact(compiler);