Prebuild.Core.Kernel.AllowProject C# (CSharp) 메소드

AllowProject() 공개 메소드

Allows the project.
public AllowProject ( string projectGroupsFlags ) : bool
projectGroupsFlags string The project groups flags.
리턴 bool
		public bool AllowProject(string projectGroupsFlags) 
		{
			if(m_ProjectGroups != null && m_ProjectGroups.Length > 0) 
			{
				if(projectGroupsFlags != null && projectGroupsFlags.Length == 0) 
				{
					foreach(string group in projectGroupsFlags.Split('|')) 
					{
						if(Array.IndexOf(m_ProjectGroups, group) != -1) //if included in the filter list
						{
							return true;
						}
					}
				}
				return false;//not included in the list or no groups specified for the project
			}
			return true;//no filter specified in the command line args
		}