Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for copyAction (0.23 sec)

  1. subprojects/core/src/main/java/org/gradle/api/internal/file/copy/CopyAction.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package org.gradle.api.internal.file.copy;
    
    import org.gradle.api.tasks.WorkResult;
    
    public interface CopyAction {
    
        WorkResult execute(CopyActionProcessingStream stream);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 21 00:00:32 UTC 2020
    - 794 bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/api/internal/file/copy/CopySpecMatchingTest.groovy

            Action matchingAction = Mock()
    
            when:
            copySpec.filesMatching(["**/a*", "**/c*"], matchingAction)
            copySpec.copyActions.each { copyAction ->
                copyAction.execute(details1)
                copyAction.execute(details2)
                copyAction.execute(details3)
            }
    
            then:
            1 * matchingAction.execute(details1)
            0 * matchingAction.execute(details2)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 28 12:39:32 UTC 2023
    - 5K bytes
    - Viewed (0)
  3. subprojects/core/src/test/groovy/org/gradle/api/internal/file/copy/DefaultCopySpecTest.groovy

            then:
            spec.copyActions.size() == 1
            def (copyAction) = spec.copyActions
            copyAction instanceof RenamingCopyAction
            copyAction.transformer instanceof RegExpNameMapper
    
            where:
            regexp << ["regexp", /regexp/]
        }
    
        def 'adds rename Closure to actions'() {
            when:
            spec.rename {}
    
            then:
            spec.copyActions.size() == 1
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 26 08:05:50 UTC 2023
    - 14.7K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/api/tasks/AbstractCopyTaskTest.groovy

            task.mainSpec.buildRootResolver().source.files == task.project.fileTree(projectDir).files
        }
    
        static class TestCopyTask extends AbstractCopyTask {
            CopyAction copyAction
    
            protected CopyAction createCopyAction() {
                copyAction
            }
    
            @OutputDirectory
            File getDestinationDir() {
                project.file("dest")
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 14 12:40:35 UTC 2019
    - 2K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/api/internal/file/copy/CopyActionExecuterTest.groovy

                        }
                    }
                }
            }
    
            def action = Mock(CopyActionProcessingStreamAction)
            def workResult = true
            def copyAction = new CopyAction() {
                WorkResult execute(CopyActionProcessingStream stream) {
                    stream.process(action)
                    WorkResults.didWork(workResult)
                }
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 28 12:39:32 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/api/internal/file/copy/SyncCopyActionDecorator.java

    public class SyncCopyActionDecorator implements CopyAction {
        private final File baseDestDir;
        private final CopyAction delegate;
        private final PatternFilterable preserveSpec;
        private final Deleter deleter;
        private final DirectoryFileTreeFactory directoryFileTreeFactory;
    
        public SyncCopyActionDecorator(
            File baseDestDir,
            CopyAction delegate,
            Deleter deleter,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 09 13:29:36 UTC 2019
    - 4.7K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/api/tasks/bundling/Tar.java

    import org.gradle.api.internal.file.archive.compression.GzipArchiver;
    import org.gradle.api.internal.file.archive.compression.SimpleCompressor;
    import org.gradle.api.internal.file.copy.CopyAction;
    import org.gradle.api.tasks.Input;
    import org.gradle.work.DisableCachingByDefault;
    
    /**
     * Assembles a TAR archive.
     */
    @DisableCachingByDefault(because = "Not worth caching")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 24 23:13:41 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/api/tasks/Copy.java

     * limitations under the License.
     */
    
    package org.gradle.api.tasks;
    
    import org.gradle.api.InvalidUserDataException;
    import org.gradle.api.internal.file.copy.CopyAction;
    import org.gradle.api.internal.file.copy.CopySpecInternal;
    import org.gradle.api.internal.file.copy.DestinationRootCopySpec;
    import org.gradle.api.internal.file.copy.FileCopyAction;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 24 23:13:41 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/api/internal/file/copy/DuplicateHandlingCopyActionDecorator.java

    public class DuplicateHandlingCopyActionDecorator implements CopyAction {
    
        private final static Logger LOGGER = LoggerFactory.getLogger(DuplicateHandlingCopyActionDecorator.class);
        private final CopyAction delegate;
        private final CopySpecInternal spec;
        private final DocumentationRegistry documentationRegistry;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 02 14:30:00 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/api/internal/file/copy/NormalizingCopyActionDecorator.java

    import java.util.Map;
    import java.util.Set;
    
    /**
     * A {@link CopyAction} which cleans up the tree as it is visited. Removes duplicate directories and adds in missing directories. Removes empty directories if instructed to do so by copy
     * spec.
     */
    public class NormalizingCopyActionDecorator implements CopyAction {
    
        private final CopyAction delegate;
        private final Chmod chmod;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 10:41:40 UTC 2024
    - 8.3K bytes
    - Viewed (0)
Back to top