Пример #1
0
        /// <summary>
        /// Copies a directory tree from the source to the destination.
        /// </summary>
        /// <param name="context">The script execution environment.</param>
        /// <param name="sourcePath">The source path.</param>
        /// <param name="destinationPath">The destination path.</param>
        /// <param name="overwriteExisting">if set to <c>true</c> the task will overwrite existing destination files.</param>
        public static void Execute(
            ITaskContext context,
            string sourcePath,
            string destinationPath,
            bool overwriteExisting)
        {
            CopyDirectoryStructureTask task = new CopyDirectoryStructureTask(sourcePath, destinationPath, overwriteExisting);

            task.Execute(context);
        }
Пример #2
0
        /// <summary>
        /// Copies a directory tree from the source to the destination.
        /// </summary>
        /// <param name="environment">The script execution environment.</param>
        /// <param name="sourcePath">The source path.</param>
        /// <param name="destinationPath">The destination path.</param>
        /// <param name="overwriteExisting">if set to <c>true</c> the task will overwrite existing destination files.</param>
        public static void Execute(
            IScriptExecutionEnvironment environment,
            string sourcePath,
            string destinationPath,
            bool overwriteExisting)
        {
            CopyDirectoryStructureTask task = new CopyDirectoryStructureTask(sourcePath, destinationPath, overwriteExisting);

            task.Execute(environment);
        }