- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for FilterReader (0.19 sec)
-
platforms/documentation/docs/src/docs/userguide/authoring-builds/gradle-properties/working_with_files.adoc
include::sample[dir="snippets/files/copy/groovy",files="build.gradle[tags=filter-files]"] ==== The `filter()` method has two variants, which behave differently: * one takes a `{javaApi}/java/io/FilterReader.html[FilterReader]` and is designed to work with Ant filters, such as `ReplaceTokens` * one takes a closure or link:{javadocPath}/org/gradle/api/Transformer.html[Transformer] that defines the transformation for each line of the source file
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 24 04:19:09 UTC 2024 - 70.5K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopyTaskIntegrationSpec.groovy
task copy(type: Copy) { from 'files' into 'dest' filter(SubstitutingFilter) } class SubstitutingFilter extends FilterReader { SubstitutingFilter(Reader reader) { super(new StringReader(reader.text.replaceAll("one", "1").replaceAll("two", "2"))) } } """
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 03 15:21:23 UTC 2024 - 67.9K bytes - Viewed (0)