Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for BinaryTasks (0.28 sec)

  1. platforms/software/platform-base/src/main/java/org/gradle/platform/base/BinaryTasks.java

     *
     * The following example demonstrates how to register multiple tasks for custom binary using a plugin with a
     * {@link org.gradle.platform.base.BinaryTasks} annotation.
     *
     * <pre class='autoTested'>
     * {@literal @}Managed interface SampleComponent extends ComponentSpec {}
     * {@literal @}Managed interface SampleBinary extends BinarySpec {}
     *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 2K bytes
    - Viewed (0)
  2. platforms/software/platform-base/src/test/groovy/org/gradle/platform/base/internal/registry/BinaryTasksModelRuleExtractorTest.groovy

        class Rules {
    
            @BinaryTasks
            static String returnValue(ModelMap<Task> builder, SomeBinarySpec binary) {
            }
    
            @BinaryTasks
            static void noParams() {
            }
    
            @BinaryTasks
            static void wrongSubject(BinarySpec binary, String input) {
            }
    
            @BinaryTasks
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  3. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/CustomBinaryTasksIntegrationTest.groovy

            """
        }
    
        def "executing #taskdescr triggers custom task"() {
            given:
            buildFile << """
            class BinaryTasksPlugin extends RuleSource {
                @BinaryTasks
                void createSampleComponentComponents(ModelMap<Task> tasks, SampleBinary binary) {
                    tasks.create("\${binary.projectScopedName}Task")
                }
            }
            apply plugin:BinaryTasksPlugin
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/customModel/languageType/groovy/buildSrc/src/main/groovy/sample/markdown/MarkdownPlugin.groovy

    package sample.markdown
    
    import org.gradle.api.Task
    import org.gradle.model.ModelMap
    import org.gradle.model.RuleSource
    import org.gradle.platform.base.BinaryTasks
    import org.gradle.platform.base.ComponentType
    import org.gradle.platform.base.TypeBuilder
    import sample.documentation.DocumentationBinary
    
    // tag::markdown-lang-registration[]
    // tag::markdown-tasks-generation[]
    class MarkdownPlugin extends RuleSource {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  5. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/plugins/NativeComponentModelPlugin.java

    import org.gradle.nativeplatform.toolchain.internal.NativeToolChainRegistryInternal;
    import org.gradle.platform.base.BinaryContainer;
    import org.gradle.platform.base.BinaryTasks;
    import org.gradle.platform.base.ComponentSpecContainer;
    import org.gradle.platform.base.ComponentType;
    import org.gradle.platform.base.Platform;
    import org.gradle.platform.base.PlatformContainer;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 24.1K bytes
    - Viewed (0)
  6. platforms/software/platform-base/src/main/java/org/gradle/platform/base/internal/registry/BinaryTasksModelRuleExtractor.java

    import org.gradle.platform.base.BinaryTasks;
    import org.gradle.platform.base.plugins.BinaryBasePlugin;
    
    import javax.annotation.Nullable;
    import java.util.ArrayList;
    import java.util.List;
    
    import static org.gradle.model.internal.core.NodePredicate.allLinks;
    
    public class BinaryTasksModelRuleExtractor extends AbstractAnnotationDrivenComponentModelRuleExtractor<BinaryTasks> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 00:10:35 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/customModel/languageType/groovy/buildSrc/src/main/groovy/sample/documentation/DocumentationPlugin.groovy

            binaries.create("exploded") { binary ->
                outputDir = new File(buildDir, "${component.name}/${binary.name}")
            }
        }
    // end::binaries-generation[]
    
    // tag::text-tasks-generation[]
        @BinaryTasks
        void generateTextTasks(ModelMap<Task> tasks, final DocumentationBinary binary) {
            binary.inputs.withType(TextSourceSet) { textSourceSet ->
                def taskName = binary.tasks.taskName("compile", textSourceSet.name)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/model/RuleSource.java

     * <li>{@link Validate}</li>
     * <li>{@link Rules}</li>
     * <li>{@link org.gradle.platform.base.ComponentType}</li>
     * <li>{@link org.gradle.platform.base.ComponentBinaries}</li>
     * <li>{@link org.gradle.platform.base.BinaryTasks}</li>
     * </ul>
     * <p>
     * Each annotation specifies the type of the rule, which affects when it will be executed.
     * <p>
     * The following constraints apply to all rule methods:
     * <ul>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  9. platforms/software/platform-base/src/main/java/org/gradle/language/base/plugins/ComponentModelBasePlugin.java

            }
    
            // Finalizing here, as we need this to run after any 'assembling' task (jar, link, etc) is created.
            // TODO: Convert this to `@BinaryTasks` when we model a `NativeAssembly` instead of wiring compile tasks directly to LinkTask
            @Finalize
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 14K bytes
    - Viewed (0)
Back to top