Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,878 for delegates (0.21 sec)

  1. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resource/transfer/ProgressLoggingExternalResourceUploaderTest.groovy

        def "delegates upload to delegate uploader and logs progress"() {
            setup:
            expectPutBuildOperation(1072)
    
            when:
            uploader.upload(resource, location)
    
            then:
            1 * resource.open() >> inputStream
            1 * resource.contentLength >> 1072
            1 * delegate.upload(_, location) >> { resource, destination ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 12:31:19 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/connection/BuildControllerWithoutParameterSupportTest.groovy

        def version = Mock(VersionDetails)
        def delegate = Mock(InternalBuildController)
        def modelMapping = new ModelMapping()
        def controller = new BuildControllerWithoutParameterSupport(delegate, new ProtocolToModelAdapter(), modelMapping, new File("root dir"), version)
    
        def "delegates when no parameter is given"() {
            def model = new Object()
            def modelType = Object
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSession.kt

    /** An [SSLSession] that delegates all calls.  */
    abstract class DelegatingSSLSession(protected val delegate: SSLSession?) : SSLSession {
      override fun getId(): ByteArray {
        return delegate!!.id
      }
    
      override fun getSessionContext(): SSLSessionContext {
        return delegate!!.sessionContext
      }
    
      override fun getCreationTime(): Long {
        return delegate!!.creationTime
      }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/ArtifactHandlerScope.kt

    import org.gradle.api.artifacts.Configuration
    import org.gradle.api.artifacts.PublishArtifact
    import org.gradle.api.artifacts.dsl.ArtifactHandler
    
    import org.gradle.kotlin.dsl.support.delegates.ArtifactHandlerDelegate
    
    
    /**
     * Receiver for `artifacts` block providing convenient utilities for configuring artifacts.
     *
     * @see ArtifactHandler
     */
    class ArtifactHandlerScope
    private constructor(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSocketFactory.kt

    import javax.net.ssl.SSLSocketFactory
    
    /**
     * A [SSLSocketFactory] that delegates calls. Sockets can be configured after creation by
     * overriding [.configureSocket].
     */
    open class DelegatingSSLSocketFactory(private val delegate: SSLSocketFactory) : SSLSocketFactory() {
      @Throws(IOException::class)
      override fun createSocket(): SSLSocket {
        val sslSocket = delegate.createSocket() as SSLSocket
        return configureSocket(sslSocket)
      }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/docs/userguide/authoring-builds/tutorial/partr5_build_scripts.adoc

    =====
    [source, kotlin]
    ----
    defaultTasks("some-task")      // Delegates to Project.defaultTasks()
    reportsDir = file("reports")   // Delegates to Project.file() and the Java Plugin
    ----
    =====
    [.multi-language-sample]
    =====
    [source, groovy]
    ----
    defaultTasks 'some-task'      // Delegates to Project.defaultTasks()
    reportsDir = file('reports')  // Delegates to Project.file() and the Java Plugin
    ----
    =====
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 29 17:16:27 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/repositories/resolver/MavenUniqueSnapshotComponentIdentifierTest.groovy

    class MavenUniqueSnapshotComponentIdentifierTest extends Specification {
        private ModuleIdentifier moduleIdentifier = DefaultModuleIdentifier.newId("group", "module")
    
        def "delegates module version to owner"() {
            def id = new MavenUniqueSnapshotComponentIdentifier(moduleIdentifier, version, "timestamp")
    
            expect:
            id.group == "group"
            id.module == "module"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/local/model/DefaultProjectDependencyMetadataTest.groovy

        def dep = new DefaultProjectDependencyMetadata(selector, target)
    
        def "returns this when same target requested"() {
            expect:
            dep.withTarget(selector).is(dep)
        }
    
        def "delegates when different target requested"() {
            def requested = Stub(ComponentSelector)
            def delegateCopy = Stub(DependencyMetadata)
    
            given:
            target.withTarget(requested) >> delegateCopy
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/hash/LittleEndianByteArray.java

     *
     * @author Kevin Damm
     * @author Kyle Maddison
     */
    @ElementTypesAreNonnullByDefault
    final class LittleEndianByteArray {
    
      /** The instance that actually does the work; delegates to Unsafe or a pure-Java fallback. */
      private static final LittleEndianBytes byteArray;
    
      /**
       * Load 8 bytes into long in a little endian manner, from the substring between position and
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  10. platforms/core-runtime/daemon-protocol/src/main/java/org/gradle/tooling/internal/provider/serialization/WellKnownClassLoaderRegistry.java

        private final PayloadClassLoaderRegistry delegate;
    
        static {
            ImmutableSet.Builder<ClassLoader> builder = ImmutableSet.builder();
            for (ClassLoader cl = PLATFORM_CLASS_LOADER; cl != null; cl = cl.getParent()) {
                builder.add(cl);
            }
            PLATFORM_CLASS_LOADERS = builder.build();
        }
    
        public WellKnownClassLoaderRegistry(PayloadClassLoaderRegistry delegate) {
            this.delegate = delegate;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 00:13:09 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top