public static void Main()

in Bootstrap/Bootstrap.cs [245:304]


        public static void Main(string[] args)
        {
            var parserResult = Parser.Default.ParseArguments<Options>(args);

            parserResult.WithParsed(options =>
            {
                string javaClassPath = FetchJars(options.JarFolder);

                string java = FindJava(options.JavaLocation);

                if (java == null)
                {
                    Console.Error.WriteLine(
                        "java could not be found. You may need to install it, or manually specify the path to it.");

                    Environment.Exit(2);
                }

                List<string> cmd = new List<string>()
                {
                    java,
                    "-cp",
                    javaClassPath,
                    "software.amazon.kinesis.multilang.MultiLangDaemon",
                    "-p",
                    options.PropertiesFile
                };
                if (!string.IsNullOrEmpty(options.LogbackConfiguration))
                {
                    cmd.Add("-l");
                    cmd.Add(options.LogbackConfiguration);
                }
                if (options.ShouldExecute)
                {
                    // Start the KCL.
                    Process proc = new Process
                    {
                        StartInfo = new ProcessStartInfo
                        {
                            FileName = cmd[0],
                            Arguments = string.Join(" ", cmd.Skip(1)),
                            UseShellExecute = false
                        }
                    };
                    proc.Start();
                    proc.WaitForExit();
                }
                else
                {
                    // Print out a command that can be used to start the KCL.
                    string c = string.Join(" ", cmd.Select(f => "\"" + f + "\""));
                    if (CURRENT_OS == OperatingSystemCategory.WINDOWS)
                    {
                        c = "& " + c;
                    }

                    Console.WriteLine(c);
                }
            });
        }