Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for duplicatesStrategy (0.24 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/DefaultCopySpec.java

            }
    
            @Override
            public DuplicatesStrategy getDuplicatesStrategy() {
                if (duplicatesStrategy != DuplicatesStrategy.INHERIT) {
                    return duplicatesStrategy;
                }
                if (parentResolver != null) {
                    return parentResolver.getDuplicatesStrategy();
                }
                return DuplicatesStrategy.INCLUDE;
            }
    
            @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)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopyTaskIntegrationSpec.groovy

            "includeEmptyDirs"   | "includeEmptyDirs = false"                        | "includeEmptyDirs = true"
            "duplicatesStrategy" | "duplicatesStrategy = DuplicatesStrategy.EXCLUDE" | "duplicatesStrategy = DuplicatesStrategy.INCLUDE"
            "dirPermissions"     | "dirPermissions { unix(\"0700\") }"               | "dirPermissions { unix(\"0755\") }"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 67.9K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/ReproducibleArchivesIntegrationTest.groovy

            given:
            duplicateEntriesInArchive(taskName, taskType, fileExtension)
    
            buildFile << """
                ${taskName} {
                    duplicatesStrategy = DuplicatesStrategy.EXCLUDE
                }
            """
    
            when:
            succeeds taskName
    
            then:
            archive(file("build/test.${fileExtension}")).content('test.txt') == "from dir2"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 02 14:30:00 UTC 2024
    - 11.3K bytes
    - Viewed (0)
Back to top