public BranchInfo(List<UnrealTargetPlatform> InHostPlatforms)
    {
        BaseEngineProject = new BranchUProject();

        var AllProjects = UnrealBuildTool.UProjectInfo.FilterGameProjects(false, null);

        foreach (var InfoEntry in AllProjects)
        {
            var UProject = new BranchUProject(InfoEntry);
            if (UProject.Properties.bIsCodeBasedProject)
            {
                CodeProjects.Add(UProject);
            }
            else
            {
                NonCodeProjects.Add(UProject);
            }
        }

        CommandUtils.Log("  Base Engine:");
        BaseEngineProject.Dump(InHostPlatforms);

        CommandUtils.Log("  {0} Code projects:", CodeProjects.Count);
        foreach (var Proj in CodeProjects)
        {
            Proj.Dump(InHostPlatforms);
        }
        CommandUtils.Log("  {0} Non-Code projects:", CodeProjects.Count);
        foreach (var Proj in NonCodeProjects)
        {
            Proj.Dump(InHostPlatforms);
        }
    }
Esempio n. 2
0
		public BranchUProject FindGameChecked(string GameName)
		{
			BranchUProject Project = FindGame(GameName);
			if(Project == null)
			{
				throw new AutomationException("Cannot find project '{0}' in branch", GameName);
			}
			return Project;
		}
Esempio n. 3
0
        public BranchInfo(List <UnrealTargetPlatform> InHostPlatforms)
        {
            BaseEngineProject = new BranchUProject();

            var AllProjects = UnrealBuildTool.UProjectInfo.FilterGameProjects(false, null);
            var StartTime   = DateTime.Now.ToString();

            foreach (var InfoEntry in AllProjects)
            {
                var UProject = new BranchUProject(InfoEntry);
                if (UProject.Properties.bIsCodeBasedProject)
                {
                    CodeProjects.Add(UProject);
                }
                else
                {
                    NonCodeProjects.Add(UProject);
                    // the base project uses BlankProject if it really needs a .uproject file
                    if (String.IsNullOrEmpty(BaseEngineProject.FilePath) && UProject.GameName == "BlankProject")
                    {
                        BaseEngineProject.FilePath = UProject.FilePath;
                    }
                }
            }
            var FinishTime = DateTime.Now.ToString();

            CommandUtils.PrintCSVFile(String.Format("UAT,SortProjects,{0},{1}", StartTime, FinishTime));

            /*           if (String.IsNullOrEmpty(BaseEngineProject.FilePath))
             *         {
             *             throw new AutomationException("All branches must have the blank project /Samples/Sandbox/BlankProject");
             *         }*/

            CommandUtils.Log("  Base Engine:");
            var StartBranchDump = DateTime.Now.ToString();

            BaseEngineProject.Dump(InHostPlatforms);

            CommandUtils.Log("  {0} Code projects:", CodeProjects.Count);
            foreach (var Proj in CodeProjects)
            {
                Proj.Dump(InHostPlatforms);
            }
            CommandUtils.Log("  {0} Non-Code projects:", CodeProjects.Count);
            foreach (var Proj in NonCodeProjects)
            {
                Proj.Dump(InHostPlatforms);
            }
            var FinishBranchDump = DateTime.Now.ToString();

            CommandUtils.PrintCSVFile(String.Format("UAT,Project Dump,{0},{1}", StartBranchDump, FinishBranchDump));
        }
        public BranchInfo(List <UnrealTargetPlatform> InHostPlatforms)
        {
            BaseEngineProject = new BranchUProject();

            var AllProjects = UnrealBuildTool.UProjectInfo.AllProjectFiles;

            using (TelemetryStopwatch SortProjectsStopwatch = new TelemetryStopwatch("SortProjects"))
            {
                foreach (var InfoEntry in AllProjects)
                {
                    var UProject = new BranchUProject(InfoEntry);
                    if (UProject.Properties.bIsCodeBasedProject)
                    {
                        CodeProjects.Add(UProject);
                    }
                    else
                    {
                        NonCodeProjects.Add(UProject);
                        // the base project uses BlankProject if it really needs a .uproject file
                        if (BaseEngineProject.FilePath == null && UProject.GameName == "BlankProject")
                        {
                            BaseEngineProject.FilePath = UProject.FilePath;
                        }
                    }
                }
            }

            /*           if (String.IsNullOrEmpty(BaseEngineProject.FilePath))
             *         {
             *             throw new AutomationException("All branches must have the blank project /Samples/Sandbox/BlankProject");
             *         }*/

            using (TelemetryStopwatch ProjectDumpStopwatch = new TelemetryStopwatch("Project Dump"))
            {
                CommandUtils.LogVerbose("  Base Engine:");
                BaseEngineProject.Dump(InHostPlatforms);

                CommandUtils.LogVerbose("  {0} Code projects:", CodeProjects.Count);
                foreach (var Proj in CodeProjects)
                {
                    Proj.Dump(InHostPlatforms);
                }
                CommandUtils.LogVerbose("  {0} Non-Code projects:", CodeProjects.Count);
                foreach (var Proj in NonCodeProjects)
                {
                    Proj.Dump(InHostPlatforms);
                }
            }
        }
Esempio n. 5
0
        public BranchInfo(List<UnrealTargetPlatform> InHostPlatforms)
        {
            BaseEngineProject = new BranchUProject();

            var AllProjects = UnrealBuildTool.UProjectInfo.FilterGameProjects(false, null);
            using(CommandUtils.TelemetryStopwatch SortProjectsStopwatch = new CommandUtils.TelemetryStopwatch("SortProjects"))
            {
                foreach (var InfoEntry in AllProjects)
                {
                    var UProject = new BranchUProject(InfoEntry);
                    if (UProject.Properties.bIsCodeBasedProject)
                    {
                        CodeProjects.Add(UProject);
                    }
                    else
                    {
                        NonCodeProjects.Add(UProject);
                        // the base project uses BlankProject if it really needs a .uproject file
                        if (String.IsNullOrEmpty(BaseEngineProject.FilePath) && UProject.GameName == "BlankProject")
                        {
                            BaseEngineProject.FilePath = UProject.FilePath;
                        }
                    }
                }
            }
             /*           if (String.IsNullOrEmpty(BaseEngineProject.FilePath))
            {
                throw new AutomationException("All branches must have the blank project /Samples/Sandbox/BlankProject");
            }*/

            using(CommandUtils.TelemetryStopwatch ProjectDumpStopwatch = new CommandUtils.TelemetryStopwatch("Project Dump"))
            {
                CommandUtils.Log("  Base Engine:");
                BaseEngineProject.Dump(InHostPlatforms);

                CommandUtils.Log("  {0} Code projects:", CodeProjects.Count);
                foreach (var Proj in CodeProjects)
                {
                    Proj.Dump(InHostPlatforms);
                }
                CommandUtils.Log("  {0} Non-Code projects:", CodeProjects.Count);
                foreach (var Proj in NonCodeProjects)
                {
                    Proj.Dump(InHostPlatforms);
                }
            }
        }
Esempio n. 6
0
        public BranchInfo(List <UnrealTargetPlatform> InHostPlatforms)
        {
            BaseEngineProject = new BranchUProject();

            var AllProjects = UnrealBuildTool.UProjectInfo.FilterGameProjects(false, null);

            foreach (var InfoEntry in AllProjects)
            {
                var UProject = new BranchUProject(InfoEntry);
                if (UProject.Properties.bIsCodeBasedProject)
                {
                    CodeProjects.Add(UProject);
                }
                else
                {
                    NonCodeProjects.Add(UProject);
                    // the base project uses BlankProject if it really needs a .uproject file
                    if (String.IsNullOrEmpty(BaseEngineProject.FilePath) && UProject.GameName == "BlankProject")
                    {
                        BaseEngineProject.FilePath = UProject.FilePath;
                    }
                }
            }
            if (String.IsNullOrEmpty(BaseEngineProject.FilePath))
            {
                throw new AutomationException("All branches must have the blank project /Samples/Sandbox/BlankProject");
            }

            CommandUtils.Log("  Base Engine:");
            BaseEngineProject.Dump(InHostPlatforms);

            CommandUtils.Log("  {0} Code projects:", CodeProjects.Count);
            foreach (var Proj in CodeProjects)
            {
                Proj.Dump(InHostPlatforms);
            }
            CommandUtils.Log("  {0} Non-Code projects:", CodeProjects.Count);
            foreach (var Proj in NonCodeProjects)
            {
                Proj.Dump(InHostPlatforms);
            }
        }
Esempio n. 7
0
        public BranchInfo(List<UnrealTargetPlatform> InHostPlatforms)
        {
            BaseEngineProject = new BranchUProject();

            var AllProjects = UnrealBuildTool.UProjectInfo.FilterGameProjects(false, null);
            var StartTime = DateTime.Now.ToString();
            foreach (var InfoEntry in AllProjects)
            {
                var UProject = new BranchUProject(InfoEntry);
                if (UProject.Properties.bIsCodeBasedProject)
                {
                    CodeProjects.Add(UProject);
                }
                else
                {
                    NonCodeProjects.Add(UProject);
                    // the base project uses BlankProject if it really needs a .uproject file
                    if (String.IsNullOrEmpty(BaseEngineProject.FilePath) && UProject.GameName == "BlankProject")
                    {
                        BaseEngineProject.FilePath = UProject.FilePath;
                    }
                }
            }
            var FinishTime = DateTime.Now.ToString();
            CommandUtils.PrintCSVFile(String.Format("UAT,SortProjects,{0},{1}", StartTime, FinishTime));            
            if (String.IsNullOrEmpty(BaseEngineProject.FilePath))
            {
                throw new AutomationException("All branches must have the blank project /Samples/Sandbox/BlankProject");
            }

            CommandUtils.Log("  Base Engine:");
            var StartBranchDump = DateTime.Now.ToString();
            BaseEngineProject.Dump(InHostPlatforms);

            CommandUtils.Log("  {0} Code projects:", CodeProjects.Count);
            foreach (var Proj in CodeProjects)
            {
                Proj.Dump(InHostPlatforms);
            }
            CommandUtils.Log("  {0} Non-Code projects:", CodeProjects.Count);
            foreach (var Proj in NonCodeProjects)
            {
                Proj.Dump(InHostPlatforms);
            }
            var FinishBranchDump = DateTime.Now.ToString();
            CommandUtils.PrintCSVFile(String.Format("UAT,Project Dump,{0},{1}", StartBranchDump, FinishBranchDump));
        }