Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 94 for requireIsolatedDaemons (0.35 sec)

  1. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/CommandLineIntegrationSpec.groovy

        @Requires(IntegTestPreconditions.NotParallelExecutor)
        def "reasonable failure message when --max-workers=#value"() {
            given:
            executer.requireDaemon().requireIsolatedDaemons()  // otherwise exception gets thrown in testing infrastructure
    
            when:
            executer.withArgument("--max-workers=$value")
    
            then:
            fails "help"
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 05:05:14 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/cli/CommandLineIntegrationLoggingSpec.groovy

            'debug'     | ''          | ['-Dorg.gradle.logging.level=debug']
        }
    
        def "Set log level using org.gradle.logging.level in GRADLE_OPTS to #logLevel"() {
            setup:
            executer.requireIsolatedDaemons()
    
            def message = 'Expected message in the output'
            buildFile << """
                task assertLogging {
                    def logLevel = project.gradle.startParameter.logLevel
                    doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  3. testing/integ-test/src/crossVersionTest/groovy/org/gradle/integtests/TaskSubclassingBinaryForwardCompatibilityCrossVersionSpec.groovy

        }
    
        def "task can use all methods declared by Task interface that AbstractTask specialises"() {
            given:
            prepareMethodUseTest(previous.version)
    
            expect:
            version previous withTasks 'assemble' inDirectory(file("producer")) run()
            version current requireDaemon() requireIsolatedDaemons() withTasks 't' run()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. testing/integ-test/src/crossVersionTest/groovy/org/gradle/integtests/TaskSubclassingBinaryBackwardsCompatibilityCrossVersionSpec.groovy

        }
    
        def "task can use all methods declared by Task interface that AbstractTask specialises"() {
            given:
            prepareMethodUseTest(current.version)
    
            expect:
            version current withTasks 'assemble' inDirectory(file("producer")) run()
            version previous requireDaemon() requireIsolatedDaemons() withTasks 't' run()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/ToolingApi.groovy

         */
        void requireIsolatedDaemons() {
            if (useSeparateDaemonBaseDir) {
                daemonBaseDir = testWorkDirProvider.testDirectory.file("daemons")
            } else {
                gradleUserHomeDir = testWorkDirProvider.testDirectory.file("user-home-dir")
            }
            requireIsolatedDaemons = true
            requiresDaemon = true
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:07:23 UTC 2024
    - 12K bytes
    - Viewed (0)
  6. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/javadoc/JavadocFileEncodingIntegrationTest.groovy

                apply plugin: 'java'
                javadoc {
                    options {
                        windowTitle = "💩 💩 💩 💩"
                    }
                }
            """
            executer.requireIsolatedDaemons()
            executer.requireDaemon()
    
            file("src/main/java/Main.java") << """
                public class Main {}
            """
    
            when:
            // Doesn't support the characters used in the title
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. platforms/core-runtime/instrumentation-agent-services/src/integTest/groovy/org/gradle/internal/instrumentation/agent/AgentApplicationTest.groovy

        @Requires(
            value = IntegTestPreconditions.IsDaemonExecutor,
            reason = "Testing the daemons"
        )
        def "daemon with the same agent status is reused"() {
            given:
            executer.requireIsolatedDaemons()
            withDumpAgentStatusTask()
    
            when:
            withAgentApplied(useAgentOnFirstRun)
            succeeds()
    
            then:
            daemons.daemon.becomesIdle()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/caching/ArtifactCacheUnusedEntryCleanupIntegrationTest.groovy

        }
    
        def "cleans up resources and files that were not recently used from caches"() {
            given:
            buildscriptWithDependency(snapshotModule)
    
            when:
            executer.requireIsolatedDaemons() // needs to stop daemon
            succeeds 'resolve'
    
            then:
            def resource = findFile(cacheDir, 'resources-*/**/maven-metadata.xml')
            def files = findFiles(cacheDir, "files-*/**/*")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 22 12:06:23 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r32/BuildActionCrossVersionSpec.groovy

            settingsFile.text = 'rootProject.name = "not broken"'
    
            // Ensure daemon is reused
            toolingApi.requireIsolatedDaemons()
    
            // Copy each of the action classes into its own classes directory and load into a single ClassLoader
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r10rc1/PassingCommandLineArgumentsCrossVersionSpec.groovy

            given:
            file('.myGradle').createDir()
            file('build.gradle') << "assert gradle.gradleUserHomeDir.name.endsWith('.myGradle')"
            toolingApi.requireIsolatedDaemons()
    
            when:
            withConnection {
                it.newBuild().withArguments('-g', '.myGradle').run()
            }
    
            then:
            noExceptionThrown()
        }
    
    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