Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for list_files (0.14 sec)

  1. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/UndeclaredFileAccess.groovy

                    "File(\"$directoryPath\").listFiles()"
                }
    
                @Override
                String getJavaExpression() {
                    "new File(\"$directoryPath\").listFiles()"
                }
    
                @Override
                String getGroovyExpression() {
                    "new File(\"$directoryPath\").listFiles()"
                }
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  2. testing/performance/src/performanceTest/groovy/org/gradle/performance/regression/android/AndroidIncrementalExecutionPerformanceTest.groovy

            configurationCaching = configurationCachingMessage(configurationCachingEnabled)
        }
    }
    
    class SantaTrackerConfigurationCacheWorkaround {
        static void beforeBuild(File workingDir) {
            workingDir.listFiles().findAll { new File(it, "settings.gradle").exists() }.forEach { projectDir ->
                // Workaround for Android Gradle plugin checking for the presence of these directories at configuration time,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:24:57 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  3. platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/AbstractWrapperIntegrationSpec.groovy

        void installationIn(TestFile userHomeDir) {
            def distDir = userHomeDir.file("wrapper/dists/${FilenameUtils.getBaseName(distribution.binDistribution.absolutePath)}").assertIsDir()
            assert distDir.listFiles().length == 1
            distDir.listFiles()[0].file("gradle-${distribution.version.baseVersion.version}").assertIsDir()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:54:32 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/runtimeshaded/RuntimeShadedJarCreatorTest.groovy

            writeClass(inputFilesDir, "org/gradle/MyClass")
    
            when:
            relocatedJarCreator.create(outputJar, [inputFilesDir])
    
            then:
            TestFile[] contents = tmpDir.testDirectory.listFiles().findAll { it.isFile() }
            contents.length == 1
            contents[0] == outputJar
        }
    
        def "creates fat JAR file for multiple input JAR files"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 13:39:49 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/daemon/DaemonLogsAnalyzer.groovy

        }
    
        List<DaemonFixture> getAllDaemons() {
            if (!daemonLogsDir.exists() || !daemonLogsDir.isDirectory()) {
                return []
            }
            return daemonLogsDir.listFiles().findAll { it.name.endsWith('.log') && !it.name.startsWith('hs_err') }.collect { daemonForLogFile(it) }
        }
    
        List<DaemonFixture> getVisible() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 15:22:16 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/mutator/ClearArtifactTransformCacheWithoutInstrumentedJarsMutator.groovy

            // <gradle-home>/caches/transforms-*
            List<File> oldCaches = caches.listFiles().findAll {
                it.isDirectory() && it.name.startsWith("transforms-")
            }
    
            // <gradle-home>/caches/<gradle-version>/transforms/*
            List<File> newCaches = caches.listFiles().findAll {
                it.isDirectory() && it.name.matches("\\d.*") && new File(it, "transforms").isDirectory()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 12:30:06 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedCustomTaskExecutionIntegrationTest.groovy

            file("build").listFiles().sort() as List == [file("build/output.txt"), file("build/secondary.txt")]
    
            when:
            cleanBuildDir()
            withBuildCache().run "customTask"
            then:
            skipped ":customTask"
            file("build/output.txt").text == "data"
            file("build/secondary.txt").text == "secondary"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheIvyPublishIntegrationTest.groovy

    import org.junit.Rule
    
    import static org.gradle.test.fixtures.server.http.HttpServer.SupportedHash.*
    import static org.gradle.util.internal.GFileUtils.deleteDirectory
    import static org.gradle.util.internal.GFileUtils.listFiles
    
    class ConfigurationCacheIvyPublishIntegrationTest extends AbstractConfigurationCacheIntegrationTest {
    
        @Rule
        public final HttpServer server = new HttpServer().tap {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  9. testing/distributions-integ-tests/src/integTest/groovy/org/gradle/DistributionIntegrationSpec.groovy

        protected TestFile unpackDistribution(type = getDistributionLabel(), TestFile into = testDirectory) {
            TestFile zip = getZip(type)
            zip.usingNativeTools().unzipTo(into)
            assert into.listFiles().size() == 1
            into.listFiles()[0]
        }
    
        protected TestFile getZip(String type = getDistributionLabel()) {
            switch (type) {
                case 'bin':
                    buildContext.binDistribution
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:14 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheCleanupIntegrationTest.groovy

            expect:
            ConcurrentTestUtil.poll(60, 0, 10) {
                configurationCacheRun 'help'
                run '--stop'
                assert !outdated.isDirectory()
            }
    
            and:
            cacheDir.listFiles().length == 3 // gc file + cache properties + 'help' state
        }
    
        private TestFile createCacheEntryDir(String entry) {
            TestFile dir = cacheDir.createDir(entry)
            dir.createFile("state.bin")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top