Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 49 for withArgument (0.18 sec)

  1. platforms/core-runtime/instrumentation-agent-services/src/integTest/groovy/org/gradle/internal/instrumentation/agent/AgentApplicationTest.groovy

            outputContains("agent applied = $applied")
        }
    
        private void withAgent() {
            withAgentApplied(true)
        }
    
        private void withAgentApplied(boolean shouldApply) {
            executer.withArgument("-D${DaemonBuildOptions.ApplyInstrumentationAgentOption.GRADLE_PROPERTY}=$shouldApply")
        }
    
        private void withoutAgent() {
            withAgentApplied(false)
        }
    
        DaemonLogsAnalyzer getDaemons() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  2. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/compile/daemon/DaemonJavaCompilerIntegrationTest.groovy

                assert configurations.runtimeClasspath.attributes.getAttribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE) == ${javaVersion}
            """
    
            expect:
            executer.withArgument("-Porg.gradle.java.installations.paths=" + jdk.javaHome.absolutePath)
            succeeds("compileJava")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 20:20:39 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/KotlinDslJvmTargetIntegrationTest.kt

            gradleExecuterFor(arrayOf("check", "publish"), rootDir = file("plugin"))
                .withJavaHome(currentJvm.javaHome)
                .withArgument("-Porg.gradle.java.installations.paths=$installationPaths")
                .run()
    
            withSettingsIn("consumer", """
                pluginManagement {
                    repositories {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 08:31:21 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/BuildOperationsFixture.groovy

            this.path = projectDir.testDirectory.file(operationsTraceName).absolutePath
            executer.beforeExecute {
                this.tree = null
                executer.withArgument("-D$BuildOperationTrace.SYSPROP=$path")
            }
        }
    
        @Override
        List<BuildOperationRecord> getRoots() {
            getTree().roots
        }
    
        List<BuildOperationRecord> getDanglingChildren() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 09:21:24 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheDebugLogIntegrationTest.groovy

            switch (enablement) {
                case CCDebugEnablement.DEBUG_LOG_LEVEL:
                    withDebugLogging()
                    break
                case CCDebugEnablement.SYSTEM_PROPERTY:
                    executer.withArgument "-D$ConfigurationCacheDebugOption.PROPERTY_NAME=true"
                    break
                case CCDebugEnablement.GRADLE_PROPERTIES_FILE:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/CrossCompilationIntegrationTest.groovy

                        new Thing();
                    }
                }
            """
    
            when:
            executer.beforeExecute({
                withArgument("-Porg.gradle.java.installations.paths=" + jvm.getJavaHome().getAbsolutePath())
            })
            fails("build")
    
            then:
            failure.assertHasDescription("Execution failed for task ':compileJava'.")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 08:31:21 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  7. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/JavaCrossCompilationIntegrationTest.groovy

                }
            """
    
            file("src/main/java/Thing.java") << """
                /** Some thing. */
                public class Thing { }
            """
            executer.withArgument("-Porg.gradle.java.installations.paths=" + jvm.javaHome.absolutePath)
        }
    
        def "can compile source and run JUnit tests using target Java version"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 05:59:30 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  8. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/SingleUseDaemonIntegrationTest.groovy

    @Requires(IntegTestPreconditions.NotDaemonExecutor)
    class SingleUseDaemonIntegrationTest extends AbstractIntegrationSpec implements DaemonJvmPropertiesFixture, JavaToolchainFixture {
    
        def setup() {
            executer.withArgument("--no-daemon")
            executer.requireIsolatedDaemons()
        }
    
        def "forks build when JVM args are requested"() {
            requireJvmArg('-Xmx64m')
    
            file('build.gradle') << "println 'hello world'"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 13:41:21 UTC 2024
    - 7K bytes
    - Viewed (0)
  9. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/compile/daemon/JavaCompileDaemonCancellationIntegrationTest.groovy

            and:
            pidFile().exists()
            def pid2 = pidFile().text.strip() as long
            pid2 == pid1
        }
    
        private void startBuild(String task) {
            executer
                .withArgument('--debug')
                .withWorkerDaemonsExpirationDisabled()
                .withTasks(task)
    
            client = new DaemonClientFixture(executer.start())
        }
    
        private void cancelBuild() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 19:57:50 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r10rc1/PassingCommandLineArgumentsCrossVersionSpec.groovy

            logger.debug("debugging stuff")
            logger.info("infoing stuff")
    """
    
            when:
            String debug = withBuild { it.withArguments('-d') }.standardOutput
    
            and:
            String info = withBuild { it.withArguments('-i') }.standardOutput
    
            then:
            debug.count("debugging stuff") == 1
            debug.count("infoing stuff") == 1
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top