- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for MatchingCopyAction (0.29 sec)
-
subprojects/core/src/main/java/org/gradle/api/internal/file/copy/MatchingCopyAction.java
import org.gradle.api.file.RelativePath; import org.gradle.api.internal.file.pattern.PatternMatcher; public class MatchingCopyAction implements Action<FileCopyDetails> { private final PatternMatcher matcher; private final Action<? super FileCopyDetails> toApply; public MatchingCopyAction(PatternMatcher matcher, Action<? super FileCopyDetails> toApply) { this.matcher = matcher; this.toApply = toApply;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jul 04 11:16:13 UTC 2019 - 1.4K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/file/copy/DefaultCopySpecTest.groovy
when: spec.filesMatching 'root/**/a*', Actions.doNothing() then: spec.copyActions.size() == 1 def (copyAction) = spec.copyActions copyAction instanceof MatchingCopyAction PatternMatcher matcher = copyAction.matcher ['/root/folder/abc', '/root/abc'].each { assertMatches matcher, it }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 26 08:05:50 UTC 2023 - 14.7K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/file/copy/DefaultCopySpec.java
return eachFile(new MatchingCopyAction(matcher, action)); } @Override public CopySpec filesNotMatching(String pattern, Action<? super FileCopyDetails> action) { PatternMatcher matcher = PatternMatcherFactory.getPatternMatcher(true, isCaseSensitive(), pattern); return eachFile(new MatchingCopyAction(matcher.negate(), action)); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 08 15:25:10 UTC 2024 - 33.6K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/file/copy/CopySpecMatchingTest.groovy
when: copySpec.filesMatching("**/*.java", Actions.doNothing()) then: 1 == childResolver.allCopyActions.size() childResolver.allCopyActions[0] instanceof MatchingCopyAction } private FileCopyDetails details(String file) { FileCopyDetails details = Mock() details.relativeSourcePath >> RelativePath.parse(true, file) details }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Feb 28 12:39:32 UTC 2023 - 5K bytes - Viewed (0)