Example #1
0
        public static void CopyFiles(this ICakeContext context, IEnumerable <string> filePaths, DirectoryPath targetDirectoryPath)
        {
            if (filePaths == null)
            {
                throw new ArgumentNullException("filePaths");
            }
            var paths = filePaths.Select(p => new FilePath(p));

            FileCopier.CopyFiles(context, paths, targetDirectoryPath);
        }
Example #2
0
        public static void CopyFiles(this ICakeContext context, IEnumerable <string> filePaths, DirectoryPath targetDirectoryPath, bool preserveFolderStructure)
        {
            if (filePaths == null)
            {
                throw new ArgumentNullException(nameof(filePaths));
            }
            var paths = filePaths.Select(p => new FilePath(p));

            FileCopier.CopyFiles(context, paths, targetDirectoryPath, preserveFolderStructure);
        }
Example #3
0
 public static void CopyFiles(this ICakeContext context, string pattern, DirectoryPath targetDirectoryPath)
 {
     FileCopier.CopyFiles(context, pattern, targetDirectoryPath);
 }
Example #4
0
 public static void CopyFiles(this ICakeContext context, IEnumerable <FilePath> filePaths, DirectoryPath targetDirectoryPath)
 {
     FileCopier.CopyFiles(context, filePaths, targetDirectoryPath);
 }
Example #5
0
 public static void CopyFiles(this ICakeContext context, IEnumerable <FilePath> filePaths, DirectoryPath targetDirectoryPath, bool preserveFolderStructure)
 {
     FileCopier.CopyFiles(context, filePaths, targetDirectoryPath, preserveFolderStructure);
 }
Example #6
0
 public static void CopyFiles(this ICakeContext context, string pattern, DirectoryPath targetDirectoryPath, bool preserveFolderStructure)
 {
     FileCopier.CopyFiles(context, pattern, targetDirectoryPath, preserveFolderStructure);
 }
 public static void CopyFiles(this ICakeContext context, GlobPattern pattern, DirectoryPath targetDirectoryPath)
 {
     FileCopier.CopyFiles(context, pattern, targetDirectoryPath, false);
 }