public AS3ProjectBuilder(AS3Project project, string compilerPath, string ipcName) : base(project, compilerPath) { this.project = project; DetectFlexSdk(compilerPath); bool mxmlcExists = File.Exists(mxmlcPath); bool fcshExists = File.Exists(fcshPath); bool ascshExists = File.Exists(ascshPath); bool asc2Exixts = File.Exists(asc2Path); asc2Mode = !fcshExists && (ascshExists || asc2Exixts); bool hostedInFD = (fcshExists || ascshExists) && ipcName != null && ipcName != ""; if (hostedInFD) { fcsh = Activator.GetObject(typeof(FlexCompilerShell), "ipc://" + ipcName + "/FlexCompilerShell") as FlexCompilerShell; } if (project.OutputType == OutputType.Application || project.OutputType == OutputType.Library) { if (fcsh != null && !fcshExists && !ascshExists) { throw new Exception("Could not locate lib\\fcsh.jar or lib\\ascsh.jar in Flex SDK."); } if (fcsh == null && !mxmlcExists && !asc2Mode) { throw new Exception("Could not locate lib\\mxmlc.jar or lib\\mxmlc-cli.jar in Flex SDK."); } } }
public AS3ProjectBuilder(AS3Project project, string compilerPath, string ipcName) : base(project, compilerPath) { this.project = project; DetectFlexSdk(compilerPath); bool hostedInFD = (ipcName != null && ipcName != ""); bool mxmlcExists = File.Exists(mxmlcPath); bool fcshExists = File.Exists(fcshPath); if (!mxmlcExists && !project.NoOutput) { throw new Exception("Could not locate lib\\mxmlc.jar in Flex SDK. Please set the correct path to the Flex SDK in AS3Context plugin settings."); } if (hostedInFD && fcshExists) { Console.WriteLine("Using the Flex Compiler Shell."); fcsh = Activator.GetObject(typeof(FlexCompilerShell), "ipc://" + ipcName + "/FlexCompilerShell") as FlexCompilerShell; } }