}
public void generateFlex(final File sdkSourceDirectory, final boolean isApache, final File sdkTargetDirectory,
final String sdkVersion, final boolean useApache) throws Exception {
// Generate the artifacts, needed by the flex compiler.
new FlexCompilerGenerator().process(sdkSourceDirectory, isApache, sdkTargetDirectory, sdkVersion, useApache);
// Generate the artifacts, needed by the flex application.
new FlexFrameworkGenerator().process(sdkSourceDirectory, isApache, sdkTargetDirectory, sdkVersion, useApache);
// Deploy the FlashPlayer and AIR runtime binaries.