Exemple #1
0
        public CompileResponse Compile(CompileRequest req)
        {
            var skc = new CompilerTool
            {
                Args = req.Args,
                Log = new CompilerLogger { Console = { AutoFlush = false } },
            };
            if (req.CommandLineArgs.IsNotNullOrEmpty())
            {
                skc.CommandLineArguments = new ToolArgsTokenizer().Tokenize(req.CommandLineArgs);
            }
            skc.Init();
            var x = skc.Run();
            var xx = new CompileResponse { Output = skc.Log.Console.Items.ToList(), ExitCode = x };
            return xx;

        }
Exemple #2
0
        public CompileResponse Compile(CompileRequest req)
        {
            var skc = new CompilerTool
            {
                Args = req.Args,
                Log  = new CompilerLogger {
                    Console = { AutoFlush = false }
                },
            };

            if (req.CommandLineArgs.IsNotNullOrEmpty())
            {
                skc.CommandLineArguments = new ToolArgsTokenizer().Tokenize(req.CommandLineArgs);
            }
            skc.Init();
            var x  = skc.Run();
            var xx = new CompileResponse {
                Output = skc.Log.Console.Items.ToList(), ExitCode = x
            };

            return(xx);
        }