Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 68 for copySpec (0.12 sec)

  1. 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)
  2. subprojects/core/src/main/java/org/gradle/api/tasks/AbstractCopyTask.java

            getMainSpec().into(destPath, configureClosure);
            return this;
        }
    
        /**
         * {@inheritDoc}
         */
        @Override
        public CopySpec into(Object destPath, Action<? super CopySpec> copySpec) {
            getMainSpec().into(destPath, copySpec);
            return this;
        }
    
        /**
         * {@inheritDoc}
         */
        @Override
        public AbstractCopyTask include(String... includes) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 10:41:40 UTC 2024
    - 16.8K bytes
    - Viewed (0)
  3. platforms/extensibility/plugin-development/src/main/java/org/gradle/plugin/devel/internal/precompiled/ExtractPluginRequestsTask.java

                FirstPassPrecompiledScript.class, Actions.doNothing());
    
            getFileSystemOperations().sync(copySpec -> {
                copySpec.from(getExtractedPluginRequestsClassesDirectory().getAsFileTree().getFiles()).include("**.class");
                copySpec.into(getExtractedPluginRequestsClassesStagingDirectory());
            });
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/files/copy/kotlin/build.gradle.kts

        dependsOn(tasks["copyMethod"])
        dependsOn(tasks["copyMethodWithExplicitDependencies"])
    }
    
    val appClasses = layout.buildDirectory.dir("classes")
    
    // tag::standalone-copyspec[]
    val webAssetsSpec: CopySpec = copySpec {
        from("src/main/webapp")
        include("**/*.html", "**/*.png", "**/*.jpg")
        rename("(.+)-staging(.+)", "$1$2")
    }
    
    tasks.register<Copy>("copyAssets") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  5. subprojects/core-api/src/main/java/org/gradle/api/Script.java

         * method.
         *
         * @param closure Closure to configure the CopySpec
         * @return The CopySpec
         */
        CopySpec copySpec(Closure closure);
    
        /**
         * Creates a directory and returns a file pointing to it.
         *
         * @param path The path for the directory to be created. Evaluated as per {@link #file(Object)}.
         * @return the created directory
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  6. platforms/jvm/plugins-application/src/main/java/org/gradle/api/plugins/internal/DefaultJavaApplication.java

            DeprecationLogger.whileDisabled(() -> convention.setExecutableDir(executableDir));
        }
    
        @Override
        public CopySpec getApplicationDistribution() {
            return DeprecationLogger.whileDisabled(convention::getApplicationDistribution);
        }
    
        @Override
        public void setApplicationDistribution(CopySpec applicationDistribution) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 23:38:57 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. platforms/extensibility/plugin-development/src/main/java/org/gradle/plugin/devel/internal/precompiled/CompileGroovyScriptPluginsTask.java

                compileBuildScript(scriptPlugin, compileClassLoader);
            }
    
            fileSystemOperations.sync(copySpec -> {
                copySpec.from(intermediatePluginClassesDirectory.get().getAsFileTree().getFiles());
                copySpec.into(getPrecompiledGroovyScriptsOutputDirectory());
            });
            ClassLoaderUtils.tryClose(compileClassLoader);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/api/internal/file/copy/DuplicateHandlingCopyActionExecutorTest.groovy

                }
                fileTree
            }
            copySpec.walk(_) >> { Action it -> it.execute(copySpecResolver) }
        }
    
        void actions(Closure... actions) {
            copySpecResolver.allCopyActions >> actions.collect { new ClosureBackedAction<>(it) }
        }
    
        void visit() {
            executer.execute(copySpec, delegate)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 02 14:30:00 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/docs/userguide/api/groovy_build_script_primer.adoc

     * For `Action` arguments, look at the type's parameter.
    +
    In the example above, the method signature is `copy(Action<? super CopySpec>)` and it's the bit inside the angle brackets that tells you the delegate type — link:{javadocPath}/org/gradle/api/file/CopySpec.html[CopySpec] in this case.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 01 20:23:16 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/ProblemReportingCrossProjectModelAccess.kt

            override fun copy(action: Action<in CopySpec>): WorkResult {
                onAccess("copy")
                return delegate.copy(action)
            }
    
            override fun copySpec(closure: Closure<*>): CopySpec {
                onAccess("copySpec")
                return delegate.copySpec(closure)
            }
    
            override fun copySpec(action: Action<in CopySpec>): CopySpec {
                onAccess("copySpec")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 41.1K bytes
    - Viewed (0)
Back to top