checkState(mTarget != null, "Target not set.");
checkNotNull(sourceFolders, "sourceFolders cannot be null.");
checkNotNull(sourceOutputDir, "sourceOutputDir cannot be null.");
checkNotNull(importFolders, "importFolders cannot be null.");
SourceGenerator compiler = new SourceGenerator(mLogger);
@SuppressWarnings("deprecation")
String aidlPath = mTarget.getPath(IAndroidTarget.AIDL);
AidlProcessor processor = new AidlProcessor(
aidlPath,
mTarget.getPath(IAndroidTarget.ANDROID_AIDL),
importFolders,
mCmdLineRunner);
compiler.processFiles(processor, sourceFolders, sourceOutputDir);
}