Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for isCompatibleWith (0.27 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/util/DefaultJavaForkOptionsTest.groovy

            then:
            options.isCompatibleWith(other)
        }
    
        def "is compatible with a subset of jvm args"() {
            def other = new DefaultJavaForkOptions(resolver, fileCollectionFactory, new DefaultJavaDebugOptions())
    
            when:
            options.jvmArgs = ["-server", "-esa"]
            other.jvmArgs = ["-server"]
    
            then:
            options.isCompatibleWith(other)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 25.5K bytes
    - Viewed (0)
  2. platforms/core-execution/workers/src/test/groovy/org/gradle/workers/internal/WorkerDaemonClientsManagerTest.groovy

            def noMatch = Stub(WorkerDaemonClient) {
                isCompatibleWith(_) >> false
            }
    
            expect:
            manager.reserveIdleClient(options, [noMatch]) == null
        }
    
        def "reserves idle client when match found"() {
            def noMatch = Stub(WorkerDaemonClient) { isCompatibleWith(_) >> false }
            def match = Stub(WorkerDaemonClient) { isCompatibleWith(_) >> true }
            def input = [noMatch, match]
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 21 14:56:11 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. platforms/core-runtime/stdlib-java-extensions/src/test/groovy/org/gradle/api/JavaVersionSpec.groovy

        }
    
        def "isCompatibleWith works as expected"() {
            expect:
            lhVersion.isCompatibleWith(rhVersion) == compatible
    
            where:
            lhVersion                | rhVersion                | compatible
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  4. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/javadoc/JavadocIntegrationTest.groovy

            when:
            succeeds 'javadoc'
    
            then:
            file('build/docs/javadoc/Foo.html').text.contains("'some text'")
    
            where:
            option << (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_16) ? ['header'] : ['header', 'footer'])
        }
    
        def "can configure options with an Action"() {
            given:
            buildFile << '''
                apply plugin: "java"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 06:04:19 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/process/internal/DefaultExecActionFactory.java

            public JavaForkOptions copyTo(JavaForkOptions options) {
                return delegate.copyTo(options);
            }
    
            @Override
            public boolean isCompatibleWith(JavaForkOptions options) {
                return delegate.isCompatibleWith(options);
            }
    
            @Override
            public void setExtraJvmArgs(Iterable<?> jvmArgs) {
                throw new UnsupportedOperationException();
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 10 06:16:11 UTC 2023
    - 24K bytes
    - Viewed (0)
  6. platforms/core-execution/workers/src/main/java/org/gradle/workers/internal/WorkerDaemonClientsManager.java

                    if (candidate.isFailed()) {
                        emitUnexpectedWorkerFailureWarning(candidate);
                        it.remove();
                    } else {
                        if (candidate.isCompatibleWith(forkOptions)) {
                            it.remove();
                            if (candidate.getLogLevel() != currentLogLevel) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 19:54:37 UTC 2024
    - 10K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/ReproducibleArchivesIntegrationTest.groovy

            // Reason for different gzip checksum on JDK16: https://jdk.java.net/16/release-notes#JDK-8244706
            where:
            compression | md5
            'gzip'      | (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_16) ? '022ce6c9bfb4705481fafdbe0d3c0334' : '7b86e679a3c6cda52736e1f167cc04f5')
            'bzip2'     | '54615d3194655da3f7f72c8859f66fa5'
        }
    
        def "#taskName preserves order of child specs"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 02 14:30:00 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  8. platforms/documentation/docs/build.gradle

            }
    
            if (javaVersion.isCompatibleWith(JavaVersion.VERSION_12)) {
                excludeTestsMatching "org.gradle.docs.samples.*.snippet-test-kit-gradle-version_*_testKitFunctionalTestSpockGradleDistribution.sample"
            }
    
            if (javaVersion.isCompatibleWith(JavaVersion.VERSION_22)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 15:37:11 UTC 2024
    - 42K bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/plugins/dsl/KotlinDslPluginCrossVersionSmokeTest.kt

            val testedVersion = "4.0.2"
    
            withDefaultSettingsIn("buildSrc")
            val buildScript = withBuildScriptIn("buildSrc", scriptWithKotlinDslPlugin(testedVersion))
            if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_20)) {
                // Kotlin 1.8.20 that is a dependency of kotlin-dsl plugin 4.0.2 doesn't work
                // with Java20+ without setting jvmTarget that is lower than JvmTarget.JVM_20
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 29 11:39:00 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  10. platforms/software/reporting/src/integTest/groovy/org/gradle/api/reporting/plugins/BuildDashboardPluginIntegrationTest.groovy

                    apply plugin: 'codenarc'
    
                    codenarc {
                        configFile = file('config/codenarc/rulesets.groovy')
                    }
                }
    
                ${JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_14) ?
                """
                configurations.codenarc {
                    resolutionStrategy.force '${groovyModuleDependency("groovy", GroovySystem.version)}'
                }
                """ : ""}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 11.7K bytes
    - Viewed (0)
Back to top