Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
 public static void CopyFiles(this ICakeContext context, string pattern, DirectoryPath targetDirectoryPath)
 {
     FileCopier.CopyFiles(context, pattern, targetDirectoryPath);
 }
Ejemplo n.º 4
0
 public static void CopyFiles(this ICakeContext context, IEnumerable <FilePath> filePaths, DirectoryPath targetDirectoryPath)
 {
     FileCopier.CopyFiles(context, filePaths, targetDirectoryPath);
 }
Ejemplo n.º 5
0
 public static void CopyFiles(this ICakeContext context, IEnumerable <FilePath> filePaths, DirectoryPath targetDirectoryPath, bool preserveFolderStructure)
 {
     FileCopier.CopyFiles(context, filePaths, targetDirectoryPath, preserveFolderStructure);
 }
Ejemplo n.º 6
0
 public static void CopyFiles(this ICakeContext context, string pattern, DirectoryPath targetDirectoryPath, bool preserveFolderStructure)
 {
     FileCopier.CopyFiles(context, pattern, targetDirectoryPath, preserveFolderStructure);
 }
Ejemplo n.º 7
0
 public static void CopyFiles(this ICakeContext context, GlobPattern pattern, DirectoryPath targetDirectoryPath)
 {
     FileCopier.CopyFiles(context, pattern, targetDirectoryPath, false);
 }