Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for duplicatesStrategy (0.34 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/file/copy/DuplicateHandlingCopyActionExecutorTest.groovy

        }
    
        def duplicatesExcludedByDefaultConfiguration() {
            given:
            files 'path/file1.txt', 'path/file2.txt', 'path/file1.txt'
            actions {}
            copySpecResolver.duplicatesStrategy >> DuplicatesStrategy.EXCLUDE
    
            when:
            visit()
    
            then:
            1 * delegateAction.processFile({ it.relativePath.pathString == '/root/path/file1.txt' })
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 02 14:30:00 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/api/internal/file/copy/DefaultFileCopyDetails.java

        }
    
        @Override
        public void setDuplicatesStrategy(DuplicatesStrategy strategy) {
            this.duplicatesStrategy = strategy;
            this.defaultDuplicatesStrategy = strategy == DuplicatesStrategy.INHERIT;
        }
    
        @Override
        public DuplicatesStrategy getDuplicatesStrategy() {
            return this.duplicatesStrategy;
        }
    
        @Override
        public boolean isDefaultDuplicatesStrategy() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 15:25:10 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  3. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/DefaultCopySpecCodec.kt

                val destPath = readNullableString()
                val sourceFiles = read() as FileCollection
                val patterns = read() as PatternSet
                val duplicatesStrategy = readEnum<DuplicatesStrategy>()
                val includeEmptyDirs = readBoolean()
                val isCaseSensitive = readBoolean()
                val filteringCharset = readString()
                val dirMode = readNullableSmallInt()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/api/internal/file/copy/DuplicateHandlingCopyActionDecorator.java

                            failWithIncorrectDuplicatesStrategySetup(relativePath);
                        }
                        if (strategy == DuplicatesStrategy.EXCLUDE) {
                            return;
                        } else if (strategy == DuplicatesStrategy.FAIL) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 02 14:30:00 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/docs/dsl/org.gradle.api.tasks.AbstractCopyTask.xml

                </tr>
                <tr>
                    <td>includeEmptyDirs</td>
                    <td><literal>true</literal></td>
                </tr>
                <tr>
                    <td>duplicatesStrategy</td>
                    <td><literal>DuplicatesStrategy.INHERIT</literal></td>
                </tr>
            </table>
        </section>
        <section>
            <title>Methods</title>
            <table>
                <thead>
                    <tr>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. subprojects/core-api/src/main/java/org/gradle/api/file/FileCopyDetails.java

         */
        void setDuplicatesStrategy(DuplicatesStrategy strategy);
    
        /**
         * The strategy to use if there is already a file at this file's destination.
         * <p>
         * The value can be set with a case-insensitive string of the enum value (e.g. {@code 'exclude'} for {@link DuplicatesStrategy#EXCLUDE}).
         *
         * @see DuplicatesStrategy
         * @return the strategy to use for this file.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 12:31:43 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/api/internal/file/copy/SingleParentCopySpec.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.file.DuplicatesStrategy;
    import org.gradle.api.internal.file.FileCollectionFactory;
    import org.gradle.api.model.ObjectFactory;
    import org.gradle.api.tasks.util.PatternSet;
    import org.gradle.internal.Factory;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jul 27 14:16:37 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/api/internal/file/copy/CopySpecWrapper.java

            delegate.setIncludeEmptyDirs(includeEmptyDirs);
        }
    
        @Override
        public DuplicatesStrategy getDuplicatesStrategy() {
            return delegate.getDuplicatesStrategy();
        }
    
        @Override
        public void setDuplicatesStrategy(DuplicatesStrategy strategy) {
            delegate.setDuplicatesStrategy(strategy);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 10:41:40 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  9. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/continuous/ArchivesContinuousIntegrationTest.groovy

            buildFile << """
                task unpack(type: Sync) {
                    from($type("${sourceFile.toURI()}"))
                    into("unpack")
                    ${permissions}
                    duplicatesStrategy = DuplicatesStrategy.EXCLUDE
                }
            """
    
            when:
            packDir.file("A").text = "original"
            packDir."$packType"(sourceFile, readonly)
    
            then:
            succeeds("unpack")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 5K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/api/internal/file/copy/CopySpecResolver.java

     * limitations under the License.
     */
    package org.gradle.api.internal.file.copy;
    
    
    import org.gradle.api.Action;
    import org.gradle.api.file.ConfigurableFilePermissions;
    import org.gradle.api.file.DuplicatesStrategy;
    import org.gradle.api.file.FileCopyDetails;
    import org.gradle.api.file.FileTree;
    import org.gradle.api.file.FileTreeElement;
    import org.gradle.api.file.FilePermissions;
    import org.gradle.api.file.RelativePath;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 13:43:13 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top