- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 644 for defaulttarg (0.15 sec)
-
platforms/documentation/docs/src/snippets/plugins/buildServiceUsingServiceReference/kotlin/buildSrc/src/main/java/Download.java
import org.gradle.api.DefaultTask; import org.gradle.api.file.RegularFileProperty; import org.gradle.api.provider.Property; import org.gradle.api.services.ServiceReference; import org.gradle.api.tasks.OutputFile; import org.gradle.api.tasks.TaskAction; import java.net.URI; public abstract class Download extends DefaultTask { // This property provides access to the service instance @ServiceReference("web")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 802 bytes - Viewed (0) -
platforms/documentation/docs/src/samples/build-organization/sharing-convention-plugins-with-build-logic/groovy/buildSrc/src/main/java/com/example/GreetingTask.java
package com.example; import org.gradle.api.DefaultTask; import org.gradle.api.tasks.TaskAction; import org.gradle.api.tasks.Input; import org.gradle.api.provider.Property; public abstract class GreetingTask extends DefaultTask { @Input public abstract Property<String> getGreeting(); @TaskAction public void greet() { System.out.println(getGreeting().get()); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 395 bytes - Viewed (0) -
platforms/documentation/docs/src/samples/build-organization/composite-builds/plugin-dev/kotlin/greeting-plugin/src/main/java/org/sample/GreetingTask.java
package org.sample; import org.gradle.api.DefaultTask; import org.gradle.api.provider.Property; import org.gradle.api.tasks.Input; import org.gradle.api.tasks.TaskAction; public abstract class GreetingTask extends DefaultTask { @Input public abstract Property<String> getWho(); @TaskAction public void greet() { System.out.println("Hi " + getWho().get() + "!!!"); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 400 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/providers/property/kotlin/build.gradle.kts
// Accessing a provider println(simpleMessageProvider.get()) // end::set-prov[] // tag::introduction[] abstract class MyIntroTask : DefaultTask() { @get:Input abstract val configuration: Property<String> @TaskAction fun printConfiguration() { println("Configuration value: ${configuration.get()}") } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 24 04:19:09 UTC 2024 - 2.1K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/tasks/commandLineOption-stringOption/kotlin/buildSrc/src/main/java/UrlVerify.java
import org.gradle.api.DefaultTask; import org.gradle.api.tasks.Input; import org.gradle.api.tasks.TaskAction; // tag::custom-task-implementation[] import org.gradle.api.tasks.options.Option; public class UrlVerify extends DefaultTask { private String url; @Option(option = "url", description = "Configures the URL to be verified.") public void setUrl(String url) { this.url = url; } @Input
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 665 bytes - Viewed (0) -
platforms/extensibility/unit-test-fixtures/src/test/groovy/org/gradle/testfixtures/ProjectBuilderTest.groovy
project.apply plugin: CustomPlugin then: project.tasks.hello instanceof DefaultTask } def canApplyACustomPluginById() { when: def project = buildProject() project.apply plugin: 'custom-plugin' then: project.tasks.hello instanceof DefaultTask } def canApplyACustomPluginByType() { when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 13 21:54:27 UTC 2024 - 5.5K bytes - Viewed (0) -
platforms/software/platform-base/src/test/groovy/org/gradle/platform/base/internal/DefaultBinaryTasksCollectionTest.groovy
def task = Mock(Task) def "can create task"() { def action = Mock(Action) def task = Stub(Task) when: tasks.create("foo", DefaultTask, action) then: 1 * taskFactory.create("foo", DefaultTask) >> task 1 * action.execute(task) } def "provides lifecycle task for binary"() { when: 1 * binary.buildTask >> task then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Oct 11 12:16:09 UTC 2023 - 2.6K bytes - Viewed (0) -
platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/ChangesByGradleFileWatchingIntegrationTest.groovy
def "detects when outputs are removed for tasks without sources"() { buildFile << """ apply plugin: 'base' abstract class Producer extends DefaultTask { @InputDirectory @SkipWhenEmpty abstract DirectoryProperty getSources() @OutputDirectory abstract DirectoryProperty getOutputDir()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 03 13:50:33 UTC 2024 - 8.4K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/plugins/readOnlyManagedProperty/groovy/buildSrc/src/main/java/Download.java
import org.gradle.api.DefaultTask; import org.gradle.api.provider.Property; import org.gradle.api.provider.Provider; import org.gradle.api.tasks.Input; import org.gradle.api.tasks.Internal; import org.gradle.api.tasks.TaskAction; import java.net.URI; // tag::download[] public abstract class Download extends DefaultTask { @Input public abstract Property<String> getLocation(); @Internal public Provider<URI> getUri() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 682 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/customModel/internalViews/tests/softwareModelExtend-iv-model.out
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 13:33:19 UTC 2024 - 5.9K bytes - Viewed (0)