Esempio n. 1
0
        private void Run(string[] args)
        {
            if (args.Length != 1)
            {
                Console.Error.WriteLine("Error: No input file specified.");
                return;
            }
            if (!File.Exists(args[0]))
            {
                Console.Error.WriteLine("Input file not found.");
                return;
            }
            var project = new DataSchemaProject();
            var context = new VerificationContext();
            project.LoadFrom(args[0], context, this);
            ShowMessages(context);

            if (context.Entries.Count != 0)
            {
                WriteWarning("No script file written.");
                return;
            }

            context.Clear();

            project.Build(context, this);
            ShowMessages(context);
        }