public static int Main(string[] args) { int errorCount = 0; Message.Trace(Severity.Notification, Resources.VulcanStart + Assembly.GetExecutingAssembly().GetName().Version); if (args.Length > 0) { string vulcanConfigPath = args[0]; Message.Trace(Severity.Notification, "Building Vulcan Config File " + vulcanConfigPath); VulcanEngine ve = new VulcanEngine(); if (File.Exists(vulcanConfigPath)) { MessageEngine me = ve.Compile(vulcanConfigPath); errorCount = (me.ErrorCount + me.WarningCount) * -1; } else { Message.Trace(Severity.Error, "Could not find file {0}", vulcanConfigPath); } } return(errorCount); }// end main
public static int Main(string[] args) { int errorCount = 0; Message.Trace(Severity.Notification, Resources.VulcanStart + Assembly.GetExecutingAssembly().GetName().Version); if (args.Length > 0) { string vulcanConfigPath = args[0]; Message.Trace(Severity.Notification, "Building Vulcan Config File " + vulcanConfigPath); VulcanEngine ve = new VulcanEngine(); if (File.Exists(vulcanConfigPath)) { MessageEngine me = ve.Compile(vulcanConfigPath); errorCount = (me.ErrorCount + me.WarningCount)* -1; } else { Message.Trace(Severity.Error, "Could not find file {0}", vulcanConfigPath); } } return errorCount; }