Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 53 for isFile (0.44 sec)

  1. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/BuildEnvironment.kt

    
    fun Directory.parentOrRoot(): Directory = if (this.file("version.txt").asFile.exists()) {
        this
    } else {
        val parent = dir("..")
        when {
            parent.file("version.txt").asFile.exists() -> parent
            this == parent -> throw IllegalStateException("Cannot find 'version.txt' file in root of repository")
            else -> parent.parentOrRoot()
    Plain Text
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Fri Feb 09 22:52:01 GMT 2024
    - 5.7K bytes
    - Viewed (2)
  2. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/CheckSubprojectsInfo.kt

    
    @DisableCachingByDefault(because = "Not worth caching")
    abstract class CheckSubprojectsInfo : SubprojectsInfo() {
    
        @TaskAction
        fun checkSubprojectsInfo() {
            if (subprojectsJson.asFile.readText() != generateSubprojectsJson()) {
                throw GradleException(
                    "New project(s) added without updating subproject JSON. Please run `:${GenerateSubprojectsInfo.TASK_NAME}` task."
                )
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Jul 07 13:12:26 GMT 2021
    - 1.2K bytes
    - Viewed (0)
  3. build-logic/jvm/src/main/kotlin/gradlebuild.api-parameter-names-index.gradle.kts

            moduleIdentity.baseName.map { "generated-resources/$it-parameter-names/$it-parameter-names.properties" }
        )
    }
    
    main.output.dir(
        parameterNamesIndex.map { it.destinationFile.get().asFile.parentFile }
    Plain Text
    - Registered: Wed Mar 27 11:36:08 GMT 2024
    - Last Modified: Fri Jan 20 15:24:40 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  4. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/AlphabeticalAcceptedApiChangesTask.kt

            }
        }
    
        private
        fun buildErrorMessage(formattedMismatches: String): String {
            return "API changes in file '${apiChangesFile.get().asFile.name}' should be in alphabetical order (by type and member), yet these changes were not:\n" +
                "$formattedMismatches\n" +
                "\n" +
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Sep 30 18:18:04 GMT 2022
    - 2K bytes
    - Viewed (0)
  5. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/AbstractAcceptedApiChangesMaintenanceTask.kt

        @get:PathSensitive(PathSensitivity.NONE)
        abstract val apiChangesFile: RegularFileProperty
    
        protected
        fun loadChanges(): List<AcceptedApiChange> {
            val jsonString = apiChangesFile.get().asFile.readText()
            val json = Gson().fromJson(jsonString, AcceptedApiChanges::class.java)
            return json.acceptedApiChanges!!
        }
    
        /**
         * Sorts the given list of [AcceptedApiChange]s by type and member.
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Tue Feb 07 20:38:43 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  6. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/SortAcceptedApiChangesTask.kt

        @TaskAction
        fun execute() {
            val sortedChanges = sortChanges(loadChanges())
            val json = formatChanges(sortedChanges)
            apiChangesFile.asFile.get().bufferedWriter().use { out -> out.write(json) }
        }
    
        private
        fun formatChanges(changes: List<AbstractAcceptedApiChangesMaintenanceTask.AcceptedApiChange>): String {
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Sep 30 18:18:04 GMT 2022
    - 2.1K bytes
    - Viewed (0)
  7. build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/extension/ReleasedVersionsDetails.kt

        init {
            val lowestInterestingVersion = GradleVersion.version("0.8")
            val lowestTestedVersion = GradleVersion.version("1.0")
    
            val releasedVersions = releasedVersionsFile.asFile.reader().use {
                Gson().fromJson(it, ReleasedVersions::class.java)
            }
    
            val latestFinalRelease = releasedVersions.finalReleases.first()
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Sat Sep 30 16:17:28 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  8. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/SubprojectsInfo.kt

            return gson.toJson(subprojects) + '\n'
        }
    
        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> {
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Thu Apr 04 07:21:38 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  9. build-logic/documentation/src/main/groovy/gradlebuild/docs/Docbook2Xhtml.groovy

        @TaskAction
        def transform() {
            logging.captureStandardOutput(LogLevel.INFO)
            logging.captureStandardError(LogLevel.INFO)
    
            def destDir = destinationDirectory.get().asFile
            fs.delete {
                delete(destDir, temporaryDir)
            }
    
            def xslClasspath = classpath.plus(objects.fileCollection().from(ClasspathUtil.getClasspathForClass(XslTransformer)))
    
            fs.copy {
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Thu Oct 05 19:36:14 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  10. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/GenerateSubprojectsInfo.kt

    
    @DisableCachingByDefault(because = "Not worth caching")
    abstract class GenerateSubprojectsInfo : SubprojectsInfo() {
    
        @TaskAction
        fun generateSubprojectsInfo() {
            subprojectsJson.asFile.writeText(generateSubprojectsJson())
        }
    
        companion object {
            internal
            const val TASK_NAME = "generateSubprojectsInfo"
        }
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Thu Jul 08 13:44:59 GMT 2021
    - 1.1K bytes
    - Viewed (0)
Back to top