Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for withBuildJvmOpts (0.35 sec)

  1. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/javadoc/JavadocFileEncodingIntegrationTest.groovy

            executer.withBuildJvmOpts("-Dfile.encoding=CP1250")
            succeeds("javadoc")
            then:
            file("build/docs/javadoc/index.html").text.contains("<title>? ? ? ?</title>")
            file("build/tmp/javadoc/javadoc.options").text.contains("-windowtitle '? ? ? ?'")
            result.assertTaskNotSkipped(":javadoc")
    
            when:
            executer.withBuildJvmOpts("-Dfile.encoding=UTF-8")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  2. testing/soak/src/integTest/groovy/org/gradle/launcher/daemon/ClassLoaderLeakAvoidanceSoakTest.groovy

                }
            """
    
            expect:
            for(int i = 0; i < 35; i++) {
                myTask.text = myTask.text.replace("runAction$i", "runAction${i + 1}")
                executer.withBuildJvmOpts("-Xmx256m", "-XX:+HeapDumpOnOutOfMemoryError")
                assert succeeds("myTask")
            }
        }
    
        def "old build script classloaders are collected"() {
            given:
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/keystore/TestKeyStore.groovy

            } else {
                executer.withBuildJvmOpts(args)
            }
        }
    
        void configureServerAndClientCerts(GradleExecuter executer) {
            def args = getServerAndClientCertArgs()
            if (GradleContextualExecuter.embedded) {
                args.each {
                    executer.withArgument(it)
                }
            } else {
                executer.withBuildJvmOpts(args)
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/DaemonOutputToggleIntegrationTest.groovy

            executer.noExtraLogging()
            succeeds "help"
    
            then:
            outputContains(":help")
        }
    
        def "output is not received when toggle is on"() {
            when:
            executer.withBuildJvmOpts("-D$LogToClient.DISABLE_OUTPUT=true").noExtraLogging()
            succeeds "help"
    
            then:
            outputDoesNotContain(":help")
            outputDoesNotContain("BUILD SUCCESSFUL")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  5. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/DaemonReportStatusIntegrationSpec.groovy

            def build = executer.withTasks("block").start()
            block.waitForAllPendingCalls()
    
            daemons.daemon.assertBusy()
            executer.useOnlyRequestedJvmOpts()
            executer.withBuildJvmOpts('-Xmx128m')
            executer.run()
    
            when:
            def out = executer.withArguments("--status").run().normalizedOutput
    
            then:
            daemons.daemons.size() == 2
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  6. testing/soak/src/integTest/kotlin/org/gradle/kotlin/dsl/caching/AbstractScriptCachingIntegrationTest.kt

            executerForCacheInspection(*arguments).run()
    
        protected
        fun buildWithDaemonHeapSize(heapMb: Int, vararg arguments: String): ExecutionResult =
            executerForCacheInspection(*arguments)
                .withBuildJvmOpts("-Xms${heapMb}m", "-Xmx${heapMb}m")
                .run()
    
        private
        fun executerForCacheInspection(vararg arguments: String): GradleExecuter =
            gradleExecuterFor(
                arrayOf(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 11:33:23 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  7. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/TestTaskLocaleIntegrationTest.groovy

                    }
                }
            """.stripIndent()
    
            when:
            executer
                .requireDaemon()
                .requireIsolatedDaemons()
                .withBuildJvmOpts("-Duser.language=tr", "-Duser.country=TR")
                .withTasks("help")
                .run()
    
            then:
            noExceptionThrown()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ResolvedConfigurationIntegrationTest.groovy

            m2.allowAll()
            m3.pom.expectGetBroken()
            m4.allowAll()
    
            expect:
            //TODO: fix dependency resolution results usage in this test and remove this flag
            executer.withBuildJvmOpts("-Dorg.gradle.configuration-cache.internal.task-execution-access-pre-stable=true")
    
            if (expression == "getFirstLevelModuleDependencies { true }") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 17:10:15 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  9. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppSystemHeaderDiscoveryIntegrationTest.groovy

                    }
                }
            """
    
            when:
            //TODO this fails in CI (for unknown reasons) with project access checks based on configuration barrier
            executer.withBuildJvmOpts("-Dorg.gradle.configuration-cache.internal.task-execution-access-pre-stable=true")
            succeeds("sysHeaders")
    
            then:
            def dirs = outputFile.readLines()
            !dirs.empty
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/GradleExecuter.java

         *
         * @param jvmOpts the JVM opts
         * @return this executer
         */
        GradleExecuter withBuildJvmOpts(String... jvmOpts);
    
        /**
         * See {@link #withBuildJvmOpts(String...)}.
         */
        GradleExecuter withBuildJvmOpts(Iterable<String> jvmOpts);
    
        /**
         * Activates the build cache
         *
         * @return this executer
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 20.3K bytes
    - Viewed (0)
Back to top