Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 125 for someFile (0.2 sec)

  1. platforms/jvm/language-java/src/test/groovy/org/gradle/api/internal/tasks/compile/DiagnosticToProblemListenerTest.groovy

                name >> "SomeFile.java"
            }
            diagnostic.lineNumber >> 1
            diagnostic.columnNumber | diagnostic.startPosition | diagnostic.endPosition >> Diagnostic.NOPOS
    
            when:
            diagnosticToProblemListener.buildProblem(diagnostic, spec)
    
            then:
            1 * spec.fileLocation("SomeFile.java")
            1 * spec.lineInFileLocation("SomeFile.java", 1)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 13:58:13 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/vfs/impl/DefaultFileSystemAccessTest.groovy

            def someFile = parentDir.file("directory/somefile.txt").createFile()
            when:
            allowFileSystemAccess(true)
            def snapshot = read(someFile)
            then:
            assertIsFileSnapshot(snapshot, someFile)
    
            when:
            allowFileSystemAccess(false)
            fileSystemAccess.write([someFile.absolutePath]) {
                someFile << "Updated"
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:32 UTC 2023
    - 10K bytes
    - Viewed (0)
  3. platforms/software/plugins-distribution/src/integTest/groovy/org/gradle/api/plugins/DistributionPluginIntegrationTest.groovy

        }
    
        def createTarTaskForCustomDistribution() {
            when:
            buildFile << """
                apply plugin:'distribution'
    
                distributions {
                    custom{
                        contents {
                            from { "someFile" }
                        }
                    }
                }
    
                """
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Oct 20 21:03:51 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  4. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/logging/ClassMethodNameStackTraceSpecTest.groovy

    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/process/internal/DefaultExecActionFactoryTest.groovy

                .withInstantiator(instantiator.decorateLenient())
                .withObjectFactory(TestUtil.objectFactory())
                .build()
    
        def javaexec() {
            File testFile = tmpDir.file("someFile")
            List files = ClasspathUtil.getClasspath(getClass().classLoader).asFiles
    
            when:
            ExecResult result = factory.javaexec { spec ->
                spec.classpath(files as Object[])
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 15 17:11:21 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  6. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/AbstractCacheCleanupTest.groovy

            cacheEntries[2].assertExists()
            deletedFiles == [cacheEntries[1]]
        }
    
        def "can delete directories"() {
            given:
            def cacheEntry = cacheDir.file("subDir").createFile("somefile")
            cacheEntry.text = "delete me"
    
            when:
            cleanupAction(finder([cacheEntry.parentFile]), { true })
                .clean(cleanableStore, progressMonitor)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  7. maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/FileProfileActivatorTest.java

            assertActivation(false, newExistsProfile("someFile.txt"), context);
            assertActivation(false, newExistsProfile("${basedir}/someFile.txt"), context);
    
            assertActivation(false, newMissingProfile(null), context);
            assertActivation(true, newMissingProfile("someFile.txt"), context);
            assertActivation(true, newMissingProfile("${basedir}/someFile.txt"), context);
        }
    
        @Test
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  8. platforms/core-runtime/files/src/test/groovy/org/gradle/internal/file/locking/ExclusiveFileAccessManagerTest.groovy

            when:
            manager.access(fileWithSameNameAsDirectory.file('someFile.zip')) {
            }
    
            then:
            RuntimeException e = thrown()
            e.message == "Could not create parent directory for lock file ${fileWithSameNameAsDirectory.file('someFile.zip.lck').absolutePath}"
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 15:52:53 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/files/fileTrees/groovy/build.gradle

    tree.visit {element ->
        println "$element.relativePath => $element.file"
    }
    // end::use[]
    
    // tag::archive-trees[]
    // Create a ZIP file tree using path
    FileTree zip = zipTree('someFile.zip')
    
    // Create a TAR file tree using path
    FileTree tar = tarTree('someFile.tar')
    
    //tar tree attempts to guess the compression based on the file extension
    //however if you must specify the compression explicitly you can:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  10. platforms/core-runtime/files/src/test/groovy/org/gradle/internal/file/impl/DefaultDeleterTest.groovy

            TestFile dir = tmpDir.getTestDirectory()
            dir.file("someFile").createFile()
    
            when:
            boolean didWork = deleter.deleteRecursively(dir)
    
            then:
            dir.assertDoesNotExist()
            didWork
        }
    
        def "deletes file"() {
            given:
            TestFile dir = tmpDir.getTestDirectory()
            TestFile file = dir.file("someFile")
            file.createFile()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 12:40:48 UTC 2024
    - 14.2K bytes
    - Viewed (0)
Back to top