Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for toRegex (0.09 sec)

  1. build-logic-commons/publishing/src/main/kotlin/gradlebuild.publish-public-libraries.gradle.kts

                        .replace("\"sha1\":\\s+\"\\w+\"".toRegex(), "\"sha1\": \"\"")
                        .replace("\"sha256\":\\s+\"\\w+\"".toRegex(), "\"sha256\": \"\"")
                        .replace("\"md5\":\\s+\"\\w+\"".toRegex(), "\"md5\": \"\"")
                    it.writeText(content)
                }
            }
        }
    
        // For local consumption by tests
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Sep 19 13:21:47 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. build-logic-commons/publishing/src/main/kotlin/gradlebuild.kotlin-dsl-plugin-bundle.gradle.kts

                    .replace("\"sha1\":\\s+\"\\w+\"".toRegex(), "\"sha1\": \"\"")
                    .replace("\"sha256\":\\s+\"\\w+\"".toRegex(), "\"sha256\": \"\"")
                    .replace("\"md5\":\\s+\"\\w+\"".toRegex(), "\"md5\": \"\"")
                it.writeText(content)
            }
        }
    }
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Aug 08 14:54:27 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/KotlinSourceQueries.kt

                }
                else -> false
            }
        }
    }
    
    
    private
    val propertyGetterNameRegex = "^get[A-Z].*$".toRegex()
    
    
    private
    val propertyIsGetterNameRegex = "^is[A-Z].*$".toRegex()
    
    
    private
    val propertySetterNameRegex = "^set[A-Z].*$".toRegex()
    
    
    private
    val JApiCompatibility.newCtMember: CtClassOrCtMember
        get() = when (this) {
            is JApiClass -> newClass.get()
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Jul 04 08:05:22 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  4. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/SortAcceptedApiChangesTask.kt

         */
        private
        fun adjustIndentation(initalJsonString: String): String {
            val indentationRegex = """^\s+""".toRegex(RegexOption.MULTILINE)
            return indentationRegex.replace(initalJsonString) { m ->
                " ".repeat(m.value.length * 2)
            }
        }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Jun 04 14:00:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateInitPluginTemplateVersionFile.kt

            "-SNAP\\d+",
            "-SNAPSHOT",
            "-alpha.*\\d+",
            "-beta.*\\d+",
            "-dev-?\\d+",
            "-dev-\\d+-\\d+",
            "-rc-?\\d+",
            "-M.+",
            "-eap-?\\d+"
        ).map { it.toRegex(RegexOption.IGNORE_CASE) }
    
        @get:Internal
        abstract val libraryVersionFile: RegularFileProperty
    
        @TaskAction
        fun updateInitPluginTemplateVersionFile() {
            val versionProperties = Properties()
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Jun 28 08:29:29 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. .teamcity/src/main/kotlin/common/VersionedSettingsBranch.kt

            private
            const val RELEASE_BRANCH = "release"
    
            private
            const val EXPERIMENTAL_BRANCH = "experimental"
    
            private
            val OLD_RELEASE_PATTERN = "release(\\d+)x".toRegex()
    
            fun fromDslContext(): VersionedSettingsBranch {
                return VersionedSettingsBranch(DslContext.getParameter("Branch", "placeholder"))
            }
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Mon Aug 26 12:59:03 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/BinaryCompatibilityRepository.kt

            get() = fullyQualifiedName
                .replace(".", "/")
                .replace(innerClassesPartRegex, "") + ".java"
    
        private
        val innerClassesPartRegex =
            "\\$.*".toRegex()
    
        private
        val JApiClass.kotlinSourceFilePath: String
            get() = "$packagePath/$bytecodeSourceFilename"
    
        private
        val JApiClass.bytecodeSourceFilename: String
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Jun 28 08:29:28 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  8. build-logic/cleanup/src/main/kotlin/gradlebuild/cleanup/Cleanup.kt

    import org.gradle.api.specs.Spec
    import org.gradle.kotlin.dsl.*
    import org.gradle.util.GradleVersion
    import java.io.File
    
    
    private
    val dirVersionPattern = "\\d+\\.\\d+(\\.\\d+)?(-\\w+)*(-\\d{14}[+-]\\d{4})?".toRegex()
    
    
    val logger = Logging.getLogger("gradlebuild.cleanup")
    
    
    /**
     * Removes state for versions that we're unlikely to ever need again, such as old snapshot versions.
     */
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Jun 28 08:29:28 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  9. build-logic/cleanup/src/main/kotlin/gradlebuild/testing/services/BuildBucketProvider.kt

                    && versionUnderTest < GradleVersion.version(endVersionExclusive)
            }
    
            private
            fun extractTestTaskGradleVersion(name: String): String? = "gradle(.+)CrossVersionTest".toRegex().find(name)?.groupValues?.get(1)
        }
    
        class IncludeTestClassProvider(private val includeTestClasses: Map<String, List<String>>) : BuildBucketProvider {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Jun 28 08:29:28 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  10. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/JavaSourceQueries.kt

        matchesName(name.asString(), candidateName)
    
    
    private
    fun matchesName(name: String, candidateName: String) =
        name == candidateName.replace(".*\\$".toRegex(), "") // strip outer class names
    
    
    private
    fun BodyDeclaration<*>.isSince(version: String): Boolean =
        comment?.orElse(null)?.content?.contains("@since $version") == true
    
    
    private
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Jun 28 08:29:24 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top