Beispiel #1
0
        public void Add(string tocFile, BuildGroupType groupType,
                        string groupId, bool isRooted, bool isExcluded)
        {
            if (_listTocMerges == null)
            {
                _listTocMerges = new BuildKeyedList <TocMerge>();
            }
            if (String.IsNullOrEmpty(tocFile) || String.IsNullOrEmpty(groupId))
            {
                return;
            }

            if (groupType == BuildGroupType.Conceptual)
            {
                if (_conceptualGroups == null)
                {
                    _conceptualGroups = new List <string>();
                }
                _conceptualGroups.Add(groupId);
            }
            else if (groupType == BuildGroupType.Reference)
            {
                if (_referenceGroups == null)
                {
                    _referenceGroups = new List <string>();
                }
                _referenceGroups.Add(groupId);
            }

            _listTocMerges.Add(new TocMerge(this.ExpandPath(tocFile),
                                            groupType, groupId, isRooted, isExcluded));
        }
Beispiel #2
0
 public TocMerge(TocMerge source)
 {
     _isIncluded = source._isIncluded;
     _isEncluded = source._isEncluded;
     _tocFile    = source._tocFile;
     _groupId    = source._groupId;
     _groupType  = source._groupType;
     _isRooted   = source._isRooted;
 }
Beispiel #3
0
 public TocMerge(string tocFile, BuildGroupType groupType,
                 string groupId, bool isRooted, bool isExcluded)
 {
     _isIncluded = true;
     _isEncluded = isExcluded;
     _tocFile    = tocFile;
     _groupId    = groupId;
     _groupType  = groupType;
     _isRooted   = isRooted;
 }