Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 88 for pouch (0.09 sec)

  1. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/logging/FullExceptionFormatterTest.groovy

            formatter.format(testDescriptor, [new RuntimeException("oops"), new Exception("ouch")]) == """\
        java.lang.RuntimeException: oops
    
        java.lang.Exception: ouch
    """
        }
    
        def "optionally shows causes"() {
            testLogging.getShowCauses() >> true
            def cause = new RuntimeException("oops")
            def exception = new Exception("ouch", cause)
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:59:04 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/initialization/InternalGradleFailuresIntegrationTest.groovy

                }
            """
        }
    
        def "Error message due to unwritable build scope cache directory is not scary"() {
            given:
            def localGradleCache = file('.gradle')
            localGradleCache.touch()
    
            when:
            fails 'hello'
    
            then:
            localGradleCache.isFile()
            assertHasStartupFailure(failure, "Cache directory '${localGradleCache}' exists and is not a directory.")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:54 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. platforms/core-runtime/base-services/src/test/groovy/org/gradle/util/internal/GFileUtilsTest.groovy

            readFileQuietly(temp.createDir("dir")).startsWith "Unable to read file"
        }
    
        def "touch creates new empty file"() {
            def foo = temp.file("foo.txt")
    
            when:
            touch(foo)
            then:
            foo.exists()
            foo.length() == 0
            foo.file
        }
    
        def "touch touches existing file"() {
            def foo = temp.file("foo.txt") << "data"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 10:50:51 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. maven-compat/src/test/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManagerTest.java

            touchFile.delete();
    
            assertTrue(updateCheckManager.isUpdateRequired(a, remoteRepository));
    
            file.getParentFile().mkdirs();
            file.createNewFile();
            updateCheckManager.touch(a, remoteRepository, null);
    
            assertFalse(updateCheckManager.isUpdateRequired(a, remoteRepository));
    
            assertNull(
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Apr 25 05:46:50 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/cache/internal/DefaultGeneratedGradleJarCacheIntegrationTest.groovy

    import org.junit.Rule
    import spock.lang.Specification
    
    import java.util.concurrent.CountDownLatch
    import java.util.concurrent.atomic.AtomicInteger
    
    import static org.apache.commons.io.FileUtils.touch
    
    class DefaultGeneratedGradleJarCacheIntegrationTest extends Specification {
        private final static String CACHE_IDENTIFIER = 'test'
        private final static long JAR_GENERATION_TIME_MS = 2000L
    
        @Rule
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultCacheCleanupExecutor.java

                    Timer timer = Time.startTimer();
                    try {
                        cacheCleanupStrategy.getCleanupAction().clean(cleanableStore, progressMonitor);
                        FileUtils.touch(gcFile);
                        LOGGER.info("{} cleaned up in {}.", cleanableStore.getDisplayName(), timer.getElapsed());
                        context.setResult(new CacheCleanupResult(progressMonitor.getDeleted(), lastCleanupTime));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 16:53:17 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/BuildInitInteractiveIntegrationTest.groovy

        }
    
        def "prompts to overwrite files if any exist and defaults to no"() {
            given: "a file exists in the build directory"
            targetDir.file(defaultFileName).touch()
    
            when:
            def handle = startInteractiveExecutorWithTasks(
                "init",
                "--incubating",
                "--dsl", "groovy",
                "--type", "basic",
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 10 12:58:10 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r51/TaskExecutionResultCrossVersionSpec.groovy

            then:
            with(taskSuccessResult(':incrementalTask')) {
                !incremental
                executionReasons[0].contains("No history")
            }
    
            when:
            file('src/a').touch()
            file('src/b').touch()
    
            and:
            runBuild('incrementalTask')
    
            then:
            with(taskSuccessResult(':incrementalTask')) {
                incremental
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r88/DaemonJvmCompatibilityCrossVersionSpec.groovy

    import org.gradle.integtests.tooling.fixture.ToolingApiSpecification
    
    class DaemonJvmCompatibilityCrossVersionSpec extends ToolingApiSpecification {
        def setup() {
            buildFile.touch()
            settingsFile << """
                rootProject.name = "root"
            """
        }
    
        @TargetGradleVersion(">=8.8")
        def "can run a build with Java 21 followed by another build with a different version"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:16:16 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/context/DaemonCompatibilitySpecSpec.groovy

        private DaemonContext candidate = Mock(DaemonContext)
    
        private TestFile javaHome = tmp.createDir("jdk")
    
        def setup() {
            javaHome.file("bin", OperatingSystem.current().getExecutableName("java")).touch()
        }
    
        DaemonRequestContext clientWants(Map args) {
            clientWants(args.requestedJvm,
                args.daemonOpts ?: [],
                args.applyInstrumentationAgent ?: false,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 00:09:57 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top