Inheritance: ITool, IProcessCommandLine
Exemplo n.º 1
0
        public static int Main(string[] args)
        {
            BuildContentTool tool = new BuildContentTool(new ConsoleOutputter());

            try
            {
                ((IProcessCommandLine)tool).ProcessCommandLine(args);

                tool.Execute();
            }
            catch (Exception e)
            {
                tool.Output.Error(e.Message);
            }

            return tool.ExitCode;
        }
Exemplo n.º 2
0
        public bool Execute()
        {
            BuildContentTool tool = new BuildContentTool(new MSBuildOutputter(buildEngine, taskName));

            tool.Parser.CommandName = taskName;
            tool.ContentFile = new ParsedPath(this.ContentFile, PathType.File);
            tool.NoLogo = true;

            try
            {
                tool.Execute();
            }
            catch (Exception e)
            {
                tool.Output.Error(e.Message);
            }

            return !tool.Output.HasOutputErrors;
        }
Exemplo n.º 3
0
        public bool Execute()
        {
            BuildContentTool tool = new BuildContentTool(new MSBuildOutputter(buildEngine, taskName));

            tool.Parser.CommandName = taskName;
            tool.ContentFile        = new ParsedPath(this.ContentFile, PathType.File);
            tool.NoLogo             = true;

            try
            {
                tool.Execute();
            }
            catch (Exception e)
            {
                tool.Output.Error(e.Message);
            }

            return(!tool.Output.HasOutputErrors);
        }