Inheritance: NAnt.Core.Types.FileSet
 /// <summary>
 /// Adds a <see cref="TarFileSet"/> to the end of the collection.
 /// </summary>
 /// <param name="item">The <see cref="TarFileSet"/> to be added to the end of the collection.</param>
 /// <returns>The position into which the new element was inserted.</returns>
 public int Add(TarFileSet item)
 {
     return(base.List.Add(item));
 }
 /// <summary>
 /// Inserts a <see cref="TarFileSet"/> into the collection at the specified index.
 /// </summary>
 /// <param name="index">The zero-based index at which <paramref name="item"/> should be inserted.</param>
 /// <param name="item">The <see cref="TarFileSet"/> to insert.</param>
 public void Insert(int index, TarFileSet item)
 {
     base.List.Insert(index, item);
 }
 /// <summary>
 /// Removes a member from the collection.
 /// </summary>
 /// <param name="item">The <see cref="TarFileSet"/> to remove from the collection.</param>
 public void Remove(TarFileSet item)
 {
     base.List.Remove(item);
 }
 /// <summary>
 /// Determines whether a <see cref="TarFileSet"/> is in the collection.
 /// </summary>
 /// <param name="item">The <see cref="TarFileSet"/> to locate in the collection.</param>
 /// <returns>
 /// <see langword="true" /> if <paramref name="item"/> is found in the
 /// collection; otherwise, <see langword="false" />.
 /// </returns>
 public bool Contains(TarFileSet item)
 {
     return(base.List.Contains(item));
 }
 /// <summary>
 /// Retrieves the index of a specified <see cref="TarFileSet"/> object in the collection.
 /// </summary>
 /// <param name="item">The <see cref="TarFileSet"/> object for which the index is returned.</param>
 /// <returns>
 /// The index of the specified <see cref="TarFileSet"/>. If the <see cref="TarFileSet"/> is not currently a member of the collection, it returns -1.
 /// </returns>
 public int IndexOf(TarFileSet item)
 {
     return(base.List.IndexOf(item));
 }
示例#6
0
 /// <summary>
 /// Adds a <see cref="TarFileSet"/> to the end of the collection.
 /// </summary>
 /// <param name="item">The <see cref="TarFileSet"/> to be added to the end of the collection.</param> 
 /// <returns>The position into which the new element was inserted.</returns>
 public int Add(TarFileSet item) {
     return base.List.Add(item);
 }
示例#7
0
 /// <summary>
 /// Adds the elements of a <see cref="TarFileSet"/> array to the end of the collection.
 /// </summary>
 /// <param name="items">The array of <see cref="TarFileSet"/> elements to be added to the end of the collection.</param> 
 public void AddRange(TarFileSet[] items) {
     for (int i = 0; (i < items.Length); i = (i + 1)) {
         Add(items[i]);
     }
 }
示例#8
0
 /// <summary>
 /// Removes a member from the collection.
 /// </summary>
 /// <param name="item">The <see cref="TarFileSet"/> to remove from the collection.</param>
 public void Remove(TarFileSet item) {
     base.List.Remove(item);
 }
示例#9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TarFileSetCollection"/> class
 /// with the specified array of <see cref="TarFileSet"/> instances.
 /// </summary>
 public TarFileSetCollection(TarFileSet[] value) {
     AddRange(value);
 }
示例#10
0
 /// <summary>
 /// Inserts a <see cref="TarFileSet"/> into the collection at the specified index.
 /// </summary>
 /// <param name="index">The zero-based index at which <paramref name="item"/> should be inserted.</param>
 /// <param name="item">The <see cref="TarFileSet"/> to insert.</param>
 public void Insert(int index, TarFileSet item) {
     base.List.Insert(index, item);
 }
示例#11
0
 /// <summary>
 /// Retrieves the index of a specified <see cref="TarFileSet"/> object in the collection.
 /// </summary>
 /// <param name="item">The <see cref="TarFileSet"/> object for which the index is returned.</param> 
 /// <returns>
 /// The index of the specified <see cref="TarFileSet"/>. If the <see cref="TarFileSet"/> is not currently a member of the collection, it returns -1.
 /// </returns>
 public int IndexOf(TarFileSet item) {
     return base.List.IndexOf(item);
 }
示例#12
0
 /// <summary>
 /// Copies the entire collection to a compatible one-dimensional array, starting at the specified index of the target array.        
 /// </summary>
 /// <param name="array">The one-dimensional array that is the destination of the elements copied from the collection. The array must have zero-based indexing.</param> 
 /// <param name="index">The zero-based index in <paramref name="array"/> at which copying begins.</param>
 public void CopyTo(TarFileSet[] array, int index) {
     base.List.CopyTo(array, index);
 }
示例#13
0
 /// <summary>
 /// Determines whether a <see cref="TarFileSet"/> is in the collection.
 /// </summary>
 /// <param name="item">The <see cref="TarFileSet"/> to locate in the collection.</param> 
 /// <returns>
 /// <see langword="true" /> if <paramref name="item"/> is found in the 
 /// collection; otherwise, <see langword="false" />.
 /// </returns>
 public bool Contains(TarFileSet item) {
     return base.List.Contains(item);
 }
示例#14
0
        private void CreateDirectoryEntry(TarArchive archive, string entryName, TarFileSet fileset)
        {
            // skip directories that were already added before
            if (_addedDirs.ContainsKey(entryName)) {
                return;
            }

            // create directory entry
            TarEntry entry = TarEntry.CreateTarEntry(entryName);
            entry.GroupId = fileset.Gid;
            entry.GroupName = fileset.GroupName;
            entry.UserId = fileset.Uid;
            entry.UserName = fileset.UserName;
            entry.TarHeader.Mode = fileset.DirMode;

            // write directory to tar file
            archive.WriteEntry(entry, false);

            // remember that directory entry was added
            _addedDirs[entryName] = null;
        }