Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 64 for copySpec (0.24 sec)

  1. platforms/documentation/docs/src/docs/dsl/org.gradle.api.Project.xml

                </tr>
                <tr>
                    <td>delete</td>
                </tr>
                <tr>
                    <td>copy</td>
                </tr>
                <tr>
                    <td>copySpec</td>
                </tr>
                <tr>
                    <td>sync</td>
                </tr>
                <tr>
                    <td>javaexec</td>
                </tr>
                <tr>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/api/internal/file/DefaultFileOperationsTest.groovy

            when:
            fileOperations.mkdir('parentDir/dir')
    
            then:
            thrown(InvalidUserDataException)
        }
    
        def createsCopySpec() {
            when:
            def spec = fileOperations.copySpec { include 'pattern' }
    
            then:
            spec instanceof DefaultCopySpec
            spec.includes == ['pattern'] as Set
        }
    
        private TestFile expectPathResolved(String path) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 15:15:04 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/docs/userguide/jvm/application_plugin.adoc

    |===
    
    Static files to be added to the distribution can be simply added to `src/dist`. More advanced customization can be done by configuring the link:{javadocPath}/org/gradle/api/file/CopySpec.html[CopySpec] exposed by the main distribution.
    
    .Include output from other tasks in the application distribution
    ====
    include::sample[dir="snippets/java/application/kotlin",files="build.gradle.kts[tags=distribution-spec]"]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  4. platforms/documentation/samples/src/integTest/groovy/org/gradle/integtests/samples/files/SamplesCopyIntegrationTest.groovy

            outputDir.file('WEB-INF/lib/commons-io-2.6.jar').isFile()
    
            where:
            dsl << ['groovy', 'kotlin']
        }
    
        @UsesSample("files/copy")
        def "can use a standalone copyspec within a copy with #dsl dsl"() {
            given:
            def dslDir = sample.dir.file(dsl)
            executer.inDirectory(dslDir)
    
            when:
            succeeds('copyAssets')
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  5. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/FileTreeCodec.kt

                    when {
                        // Optimize a common case, where fileCollection.asFileTree.matching(emptyPatterns) is used,
                        // e.g. in SourceTask and in CopySpec.
                        // Skip applying the filters to the tree
                        fileCollection.patterns.isEmpty -> {
                            fileCollection.tree.visitStructure(this)
                        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  6. platforms/extensibility/plugin-development/src/main/java/org/gradle/plugin/devel/plugins/JavaGradlePluginPlugin.java

    import org.gradle.api.artifacts.Configuration;
    import org.gradle.api.artifacts.component.ComponentIdentifier;
    import org.gradle.api.artifacts.dsl.DependencyHandler;
    import org.gradle.api.file.CopySpec;
    import org.gradle.api.file.FileCollection;
    import org.gradle.api.file.FileCopyDetails;
    import org.gradle.api.internal.artifacts.dsl.dependencies.DependencyFactoryInternal;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 06:56:29 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/GradleKotlinDslIntegrationTest.kt

                require(files("settings.gradle.kts").files.isNotEmpty(), { "files(paths)" })
                require(fileTree(".").contains(file("settings.gradle.kts")), { "fileTree(path)" })
                require(copySpec {} != null, { "copySpec {}" })
                require(mkdir("some").isDirectory, { "mkdir(path)" })
                require(delete("some"), { "delete(path)" })
                require(delete {} != null, { "delete {}" })
    
            """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 18:26:28 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  8. build-logic/packaging/src/main/kotlin/gradlebuild.distributions.gradle.kts

            manifestFile = generatedPropertiesFileFor("gradle${if (api == GradleModuleApiAttribute.API) "" else "-implementation"}-plugins")
        }
    
    fun configureDistribution(name: String, distributionSpec: CopySpec, buildDistLifecycleTask: TaskProvider<Task>, normalized: Boolean = false) {
        val disDir = if (normalized) "normalized-distributions" else "distributions"
        val zipRootFolder = if (normalized) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 06:16:07 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/docs/userguide/releases/upgrading/upgrading_version_6.adoc

    ==== Duplicates strategy
    
    Gradle 7 now fails when a copy operation (or any operation which uses a `org.gradle.api.file.CopySpec`) encounters a duplicate entry, and that the duplicates strategy isn't set.
    Please look at link:{javadocPath}/org/gradle/api/file/CopySpec.html#setDuplicatesStrategy-org.gradle.api.file.DuplicatesStrategy-[the CopySpec docs] for details.
    
    [[changes_6.9]]
    == Upgrading from 6.8 and earlier
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 15:00:23 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/bundling/ArchiveIntegrationTest.groovy

                }
                dir2 {
                    dir3 { file 'file2.txt' }
                    file 'ignored.xml'
                }
            }
            and:
            buildFile << '''
                def distImage = copySpec {
                    include '**/*.txt'
                    from('test/dir1') {
                        into 'lib'
                    }
                    from('test/dir2') {
                        into 'src'
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 30.2K bytes
    - Viewed (0)
Back to top