Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for list_files (0.09 sec)

  1. build-logic/cleanup/src/main/kotlin/gradlebuild/cleanup/Cleanup.kt

    fun FileSystemOperations.removeOldVersionsFromDir(dir: Directory, shouldDelete: Spec<GradleVersion>, dirPrefix: String = "", dirSuffix: String = "") {
        if (dir.asFile.isDirectory) {
            for (cacheDir in dir.asFile.listFiles()) {
                val cacheDirName = cacheDir.name
                if (!cacheDirName.startsWith(dirPrefix) || !cacheDirName.endsWith(dirSuffix)) {
                    continue
                }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Jun 28 08:29:28 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/SubprojectsInfo.kt

        }
    
        private
        fun generateSubprojectsDirectories(): List<File> {
            val subprojectRoots = platformsFolder.asFile.listFiles(File::isDirectory).plus(subprojectsFolder.asFile).plus(testingFolder.asFile)
            return subprojectRoots.map { it.listFiles(File::isDirectory).asList() }.flatten()
        }
    
        private
        fun generateSubprojects(): List<GradleSubproject> {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/transforms/FindGradleClasspath.groovy

        @Override
        void transform(TransformOutputs outputs) {
            File artifactFile = artifact.get().asFile
            if (artifactFile.name == 'gradle-dependencies') {
                (artifactFile.listFiles() as List<File>).sort { it.name }.each {
                    outputs.file(it)
                }
            }
        }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Jul 07 13:12:26 UTC 2021
    - 1.7K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/util/ResourceUtil.java

                return new File[0];
            }
            final File libDir = new File(libPath);
            if (!libDir.exists()) {
                return new File[0];
            }
            return libDir.listFiles((file, name) -> name.startsWith(namePrefix));
        }
    
        public static File[] getPluginJarFiles(final String namePrefix) {
            return getPluginJarFiles((file, name) -> name.startsWith(namePrefix));
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 24 08:52:32 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  5. build-logic/cleanup/src/main/kotlin/gradlebuild/cleanup/services/CachesCleaner.kt

                if (hasCleaned) {
                    return
                }
                logger.lifecycle("Cleaning up caches...")
                val homeDir = parameters.homeDir.get()
    
                homeDir.asFile.listFiles()?.filter { it.name.startsWith("distributions-") }?.forEach {
                    val workerDir = homeDir.dir(it.name)
                    cleanupDistributionCaches(workerDir, GradleVersion.version(parameters.gradleVersion.get()))
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Jun 28 08:29:28 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/CleanAcceptedApiChanges.groovy

        @InputDirectory
        abstract DirectoryProperty getJsonFileDirectory()
    
        @TaskAction
        void clean() {
            def jsonFileManager = new AcceptedApiChangesJsonFileManager()
            jsonFileDirectory.asFile.get().listFiles()
                ?.findAll { it.name.endsWith(".json") }
                ?.each { jsonFileManager.emptyAcceptedApiChanges(it) }
        }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Jun 05 08:27:29 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  7. samples/guide/src/test/kotlin/okhttp3/AllMainsTest.kt

          "$prefix/samples/guide/src/main/java/okhttp3/recipes",
          "$prefix/samples/guide/src/main/java/okhttp3/recipes/kt",
        ).map { File(it) }
    
      return directories.flatMap {
        it.listFiles().orEmpty().filter { f -> f.isFile }.toList()
      }
    }
    
    internal class MainTestProvider : SimpleProvider() {
      override fun arguments(): List<Any> {
        val mainFiles = mainFiles()
        return mainFiles.map {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  8. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/AbstractAcceptedApiChangesMaintenanceTask.kt

        abstract val apiChangesDirectory: DirectoryProperty
    
        protected
        fun loadChanges(): Map<File, List<AcceptedApiChange>> {
            return apiChangesDirectory.get().asFile.listFiles()
                ?.filter {
                    it.name.endsWith(".json")
                }?.associate {
                    it to it.readAcceptedChanges()
                }?.filterValues {
                    it.acceptedApiChanges != null
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Jun 04 14:00:46 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/transforms/FindGradleJars.groovy

        @Override
        void transform(TransformOutputs outputs) {
            File baselineJarsDirectory = artifact.get().asFile
            if (baselineJarsDirectory.name == 'gradle-jars') {
                baselineJarsDirectory.listFiles().each {
                    outputs.file(it)
                }
            }
        }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Apr 11 12:20:44 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/TestLocking.java

                        if (r < 0.333) {
                            f.exists();
    //                      System.out.print('e');
                        } else if (r < 0.667) {
                            d.listFiles();
    //                      System.out.print('l');
                        } else if (r < 1.0) {
                            InputStream in = f.getInputStream();
                            while (in.read(buf) > 0) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 3.4K bytes
    - Viewed (0)
Back to top