Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 40 for duplicatesStrategy (0.29 sec)

  1. 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)
  2. subprojects/core/src/main/java/org/gradle/api/internal/file/copy/DelegatingCopySpecInternal.java

            getDelegateCopySpec().setIncludeEmptyDirs(includeEmptyDirs);
        }
    
        @Override
        public DuplicatesStrategy getDuplicatesStrategy() {
            return getDelegateCopySpec().getDuplicatesStrategy();
        }
    
        @Override
        public void setDuplicatesStrategy(DuplicatesStrategy strategy) {
            getDelegateCopySpec().setDuplicatesStrategy(strategy);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 10:41:40 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  3. 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)
  4. platforms/ide/tooling-api/build.gradle.kts

    description = "Gradle Tooling API - the programmatic API to invoke Gradle"
    
    gradlebuildJava.usedInToolingApi()
    
    tasks.named<Jar>("sourcesJar") {
        // duplicate package-info.java because of split packages
        duplicatesStrategy = DuplicatesStrategy.EXCLUDE
    }
    
    shadedJar {
        shadedConfiguration.exclude(mapOf("group" to "org.slf4j", "module" to "slf4j-api"))
        keepPackages = listOf("org.gradle.tooling")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/api/internal/file/copy/NormalizingCopyActionDecorator.java

                throw new UnsupportedOperationException();
            }
    
            @Override
            public void setDuplicatesStrategy(DuplicatesStrategy strategy) {
                throw new UnsupportedOperationException();
            }
    
            @Override
            public DuplicatesStrategy getDuplicatesStrategy() {
                throw new UnsupportedOperationException();
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 10:41:40 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  6. build-logic/packaging/src/main/kotlin/gradlebuild.public-api-jar.gradle.kts

            }.files
        })
        destinationDirectory = layout.buildDirectory.dir("public-api/gradle-api")
        // This is needed because of the duplicate package-info.class files
        duplicatesStrategy = DuplicatesStrategy.WARN
    }
    
    // The consumable configuration containing the public Gradle API artifact
    // and its external dependencies.
    val gradleApiElements = configurations.consumable("gradleApiElements") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 11:35:55 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/bundling/ArchiveIntegrationTest.groovy

            where:
            archiveType << ['tar', 'zip']
        }
    
        def 'ensure duplicates can be included in #archiveType'() {
            given:
            createFilesStructureForDupeTests()
            buildFile << archiveTaskWithDuplicates(archiveType) << """
                archive {
                    duplicatesStrategy = DuplicatesStrategy.INCLUDE
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/files/copy/kotlin/build.gradle.kts

    tasks.named<Copy>("anotherCopyTask") {
        // The task uses many sources that produce overlapping outputs.
        // This isn't a part of any snippet, but is necessary to make the build work.
        duplicatesStrategy = DuplicatesStrategy.EXCLUDE
    }
    
    fun getDestDir() = file("some-dir")
    
    // tag::copy-method[]
    tasks.register("copyMethod") {
        doLast {
            copy {
                from("src/main/webapp")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  9. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/javadoc/JavadocWorkAvoidanceIntegrationTest.groovy

                    implementation rootProject.duplicate.outputs.files
                }
            '''
            buildFile << """
                task duplicate(type: Jar) {
                    duplicatesStrategy = DuplicatesStrategy.INCLUDE
                    from("external/a")
                    from("external/b")
                    from("external/c")
                    from("external/d")
                    from("duplicate/a")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 01 03:07:53 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  10. platforms/jvm/ear/src/main/java/org/gradle/plugins/ear/Ear.java

    import groovy.lang.DelegatesTo;
    import org.gradle.api.Action;
    import org.gradle.api.InvalidUserDataException;
    import org.gradle.api.file.CopySpec;
    import org.gradle.api.file.DirectoryProperty;
    import org.gradle.api.file.DuplicatesStrategy;
    import org.gradle.api.file.FileCopyDetails;
    import org.gradle.api.internal.file.FileCollectionFactory;
    import org.gradle.api.internal.file.copy.CopySpecInternal;
    import org.gradle.api.model.ObjectFactory;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 10.8K bytes
    - Viewed (0)
Back to top