Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #3
0
 public static void CopyFiles(this ICakeContext context, string pattern, DirectoryPath targetDirectoryPath)
 {
     FileCopier.CopyFiles(context, pattern, targetDirectoryPath);
 }
Beispiel #4
0
 public static void CopyFile(this ICakeContext context, FilePath filePath, FilePath targetFilePath)
 {
     FileCopier.CopyFile(context, filePath, targetFilePath);
 }
Beispiel #5
0
 public static void CopyFileToDirectory(this ICakeContext context, FilePath filePath, DirectoryPath targetDirectoryPath)
 {
     FileCopier.CopyFileToDirectory(context, filePath, targetDirectoryPath);
 }
Beispiel #6
0
 public static void CopyFiles(this ICakeContext context, IEnumerable <FilePath> filePaths, DirectoryPath targetDirectoryPath)
 {
     FileCopier.CopyFiles(context, filePaths, targetDirectoryPath);
 }
Beispiel #7
0
 public static void CopyFiles(this ICakeContext context, IEnumerable <FilePath> filePaths, DirectoryPath targetDirectoryPath, bool preserveFolderStructure)
 {
     FileCopier.CopyFiles(context, filePaths, targetDirectoryPath, preserveFolderStructure);
 }
Beispiel #8
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);
 }