Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 83 for copySpec (0.19 sec)

  1. subprojects/core-api/src/main/java/org/gradle/api/file/CopySourceSpec.java

         * @param configureClosure closure for configuring the child CopySourceSpec
         */
        CopySourceSpec from(Object sourcePath, @DelegatesTo(CopySpec.class) Closure configureClosure);
    
        /**
         * Specifies the source files or directories for a copy and creates a child {@code CopySpec}. The given source
         * path is evaluated as per {@link org.gradle.api.Project#files(Object...)} .
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 06 22:26:55 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/groovy/scripts/DefaultScript.java

        }
    
        public WorkResult copy(Action<? super CopySpec> action) {
            return fileOperations.copy(action);
        }
    
        public WorkResult sync(Action<? super CopySpec> action) {
            return fileOperations.sync(action);
        }
    
        @Override
        public CopySpec copySpec(Closure closure) {
            return Actions.with(copySpec(), ConfigureUtil.configureUsing(closure));
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  3. platforms/jvm/platform-jvm/src/test/groovy/org/gradle/jvm/tasks/JarTest.groovy

            then:
            jar.manifest.attributes.key == 'value'
        }
    
        def "can configure META-INF CopySpec using an Action"() {
            given:
            jar.metaInf({ CopySpec spec ->
                spec.from temporaryFolder.createFile('file.txt')
            } as Action<CopySpec>)
    
            when:
            execute(jar)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  4. build-logic/packaging/src/main/kotlin/gradlebuild/packaging/GradleDistributionSpecs.kt

    import java.io.File
    
    
    object GradleDistributionSpecs {
    
        /**
         * The binary distribution containing everything needed to run Gradle (and nothing else).
         */
        fun Project.binDistributionSpec() = copySpec {
            val gradleScriptPath by configurations.getting
            val coreRuntimeClasspath by configurations.getting
            val runtimeClasspath by configurations.getting
            val runtimeApiInfoJar by tasks.getting
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 12:35:42 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/api/internal/file/copy/DefaultCopySpecTest.groovy

            when:
            CopySpec child = spec.into('target') {}
    
            then:
            !child.is(spec)
            unpackWrapper(child).buildRootResolver().destPath == relativeDirectory('target')
        }
    
        def 'into with Action'() {
            when:
            CopySpec child = spec.into('target', new Action<CopySpec>() {
                @Override
                void execute(CopySpec copySpec) {}
            })
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 26 08:05:50 UTC 2023
    - 14.7K bytes
    - Viewed (0)
  6. platforms/jvm/plugins-application/src/main/java/org/gradle/api/plugins/ApplicationPlugin.java

            TaskProvider<Task> startScripts = project.getTasks().named(TASK_START_SCRIPTS_NAME);
    
            CopySpec libChildSpec = project.copySpec();
            libChildSpec.into("lib");
            libChildSpec.from(jar);
            libChildSpec.from(mainFeature.getRuntimeClasspathConfiguration());
    
            CopySpec binChildSpec = project.copySpec();
    
            binChildSpec.into((Callable<Object>) pluginExtension::getExecutableDir);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 23:38:57 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/SettingsScriptApi.kt

         */
        @Suppress("unused")
        fun copySpec(): CopySpec =
            fileOperations.copySpec()
    
        /**
         * Creates a {@link CopySpec} which can later be used to copy files or create an archive.
         *
         * @param configuration The block to use to configure the [CopySpec].
         * @return The configured [CopySpec]
         */
        @Suppress("unused")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/api/internal/file/FileOperations.java

        FileTree zipTree(Object zipPath);
    
        FileTree zipTreeNoLocking(Object zipPath);
    
        FileTree tarTree(Object tarPath);
    
        CopySpec copySpec();
    
        WorkResult copy(Action<? super CopySpec> action);
    
        WorkResult sync(Action<? super SyncSpec> action);
    
        File mkdir(Object path);
    
        boolean delete(Object... paths);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/KotlinScript.kt

         * @return `WorkResult` that can be used to check if the copy did any work.
         */
        fun copy(configuration: Action<CopySpec>): WorkResult
    
        /**
         * Creates a {@link CopySpec} which can later be used to copy files or create an archive.
         *
         * @return The created [CopySpec]
         */
        fun copySpec(): CopySpec
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/api/tasks/bundling/AbstractArchiveTask.java

         *
         * @param destPath destination directory *inside* the archive for the files
         * @param copySpec The closure to use to configure the child {@code CopySpec}.
         * @return this
         */
        @Override
        public CopySpec into(Object destPath, Action<? super CopySpec> copySpec) {
            super.into(destPath, copySpec);
            return this;
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 17 20:38:33 UTC 2022
    - 12.6K bytes
    - Viewed (0)
Back to top