public PMDManager(string compilerPath, string driverPath, Action <string> disp, Setting setting) { try { this.disp = disp; this.setting = setting; makeInstance(compilerPath, driverPath); ok = true; EnvironmentE env = new EnvironmentE(); env.AddEnv("pmd"); env.AddEnv("pmdopt"); envPmd = env.GetEnvVal("pmd"); envPmdOpt = env.GetEnvVal("pmdopt"); } catch { this.compiler = null; this.driver = null; ok = false; throw; } }
private void makeInstance(string compilerPath, string driverPath) { im = new InstanceMarker(); im.LoadCompilerDll(compilerPath); im.LoadDriverDll(driverPath); compiler = im.GetCompiler("MoonDriverDotNET.Compiler.Compiler"); driver = im.GetDriver("MoonDriverDotNET.Driver.Driver"); if (compiler == null || driver == null) { throw new Exception("インスタンスの生成に失敗しました。"); } }
private void makeInstance(string compilerPath, string driverPath, string preprocessorPath) { im = new InstanceMarker(); im.LoadCompilerDll(compilerPath); im.LoadDriverDll(driverPath); im.LoadPreprocessorDll(preprocessorPath); compiler = im.GetCompiler("mucomDotNET.Compiler.Compiler"); driver = im.GetDriver("mucomDotNET.Driver.Driver"); preprocessor = im.GetPreprocessor("M98DotNETcore.M98"); if (compiler == null || driver == null || preprocessor == null) { throw new Exception("インスタンスの生成に失敗しました。"); } }
public mucomManager(string compilerPath, string driverPath, string preprocessorPath, Action <string> disp, Setting setting) { try { this.disp = disp; this.setting = setting; makeInstance(compilerPath, driverPath, preprocessorPath); ok = true; } catch { this.compiler = null; this.driver = null; this.preprocessor = null; ok = false; throw; } }
public MoonDriverManager(string compilerPath, string driverPath, Action <string> disp, Setting setting) { try { this.compilerPath = compilerPath; this.driverPath = driverPath; this.disp = disp; this.setting = setting; makeInstance(compilerPath, driverPath); ok = true; } catch { this.compiler = null; this.driver = null; ok = false; throw; } }
public ReportGenerator(iprinter printer, iCollector collector, iCompiler compiler) { printer_ = printer; collector_ = collector; compiler_ = compiler; }