- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 2,032 for delegates (0.14 sec)
-
testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestWorkspaceBuilder.groovy
* * Should be inner class of TestFile, but can't because Groovy has issues with inner classes as delegates. */ class TestWorkspaceBuilder { def TestFile baseDir def TestWorkspaceBuilder(TestFile baseDir) { this.baseDir = baseDir } def apply(Closure cl) { cl.delegate = this cl.resolveStrategy = Closure.DELEGATE_FIRST cl() }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 1.8K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/delegates/ScriptHandlerDelegate.kt
} internal abstract val delegate: ScriptHandler override fun getSourceFile(): File? = delegate.sourceFile override fun getSourceURI(): URI? = delegate.sourceURI override fun getRepositories(): RepositoryHandler = delegate.repositories override fun repositories(configureClosure: Closure<Any>) = delegate.repositories(configureClosure)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 20:33:21 UTC 2023 - 2.6K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resource/transfer/ProgressLoggingExternalResourceListerTest.groovy
def delegate = Mock(ExternalResourceLister) def buildOperationRunner = Mock(BuildOperationRunner) def context = Mock(BuildOperationContext) def lister = new ProgressLoggingExternalResourceLister(delegate, buildOperationRunner) def location = new ExternalResourceName(new URI("https://location/")) def "delegates list to delegate and generates build operation"() { setup:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 08 12:31:19 UTC 2024 - 2.6K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/delegates/DependencyConstraintHandlerDelegate.kt
delegate.add(configurationName, dependencyNotation, configureAction) override fun create(dependencyConstraintNotation: Any): DependencyConstraint = delegate.create(dependencyConstraintNotation) override fun create(dependencyConstraintNotation: Any, configureAction: Action<in DependencyConstraint>): DependencyConstraint = delegate.create(dependencyConstraintNotation, configureAction)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 2.1K bytes - Viewed (0) -
platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/codecs/DelegatingCodec.kt
import org.gradle.internal.serialize.graph.withCodec /** * A codec that delegates to some more general codec, but only for a specific type */ class DelegatingCodec<T>( private val userTypesCodec: Codec<Any?>, ) : Codec<T> { override suspend fun WriteContext.encode(value: T) { // Delegate to the other codec withCodec(userTypesCodec) { write(value) } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 04 18:56:44 UTC 2024 - 1.4K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSocketFactory.kt
import java.net.Socket import javax.net.SocketFactory /** * A [SocketFactory] that delegates calls. Sockets can be configured after creation by * overriding [.configureSocket]. */ open class DelegatingSocketFactory(private val delegate: SocketFactory) : SocketFactory() { @Throws(IOException::class) override fun createSocket(): Socket { val socket = delegate.createSocket() return configureSocket(socket) }
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.1K bytes - Viewed (0) -
pkg/test/framework/operations.go
func NewContext(goTest *testing.T, labels ...label.Instance) TestContext { return newRootContext(nil, goTest, labels...) } // newRootContext creates a new TestContext that has no parent. Delegates to the global runtime. func newRootContext(test *testImpl, goTest *testing.T, labels ...label.Instance) *testContext { rtMu.Lock() defer rtMu.Unlock() if rt == nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jun 29 21:19:48 UTC 2020 - 1.4K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/KotlinBuildScript.kt
@GradleDsl @Deprecated("Will be removed in Gradle 9.0") abstract class KotlinBuildScript( private val host: KotlinScriptHost<Project> ) : @Suppress("DEPRECATION") org.gradle.kotlin.dsl.support.delegates.ProjectDelegate() { override val delegate: Project get() = host.target /** * The [ScriptHandler] for this script. */ override fun getBuildscript(): ScriptHandler = host.scriptHandler
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 26 19:59:56 UTC 2023 - 3K bytes - Viewed (0) -
subprojects/core-api/src/test/groovy/org/gradle/internal/typeconversion/TypeFilteringNotationConverterTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Aug 15 16:06:48 UTC 2017 - 1.3K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/caching/MapBasedBuildCacheService.java
/** * Simple build cache implementation that delegates to a {@link ConcurrentMap}. * * @since 3.5 */ public class MapBasedBuildCacheService implements BuildCacheService { private final ConcurrentMap<String, byte[]> delegate; public MapBasedBuildCacheService(ConcurrentMap<String, byte[]> delegate) { this.delegate = delegate; } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jan 08 17:15:17 UTC 2019 - 2.1K bytes - Viewed (0)