Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 27 for toRegex (0.05 sec)

  1. 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 Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Dec 24 14:15:15 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  2. 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 Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Jun 28 08:29:28 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. .teamcity/src/main/kotlin/promotion/PublishNightlySnapshot.kt

     * release - 1:00
     * release6x - 2:00
     * release7x - 3:00
     * ...
     * releaseNx - (N-4):00
     */
    fun VersionedSettingsBranch.determineNightlyPromotionTriggerHour(): Int? {
        val oldReleasePattern = "release(\\d+)x".toRegex()
        return when (branchName) {
            "master" -> 0
            "release" -> 1
            else -> {
                val matchResult = oldReleasePattern.find(branchName)
                if (matchResult == null) {
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Mon Dec 29 08:57:18 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  4. 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 Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Jun 28 08:29:28 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  5. 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
    val SINCE_REGEX = Regex("""@since ([^\s]+)""")
    
    private
    fun BodyDeclaration<*>.getSince(): String? =
        comment?.orElse(null)?.content?.let { content ->
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Jun 06 17:52:09 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  6. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/AbstractCheckOrUpdateContributorsInReleaseNotes.kt

    
    data class GitHubPullRequest(
        val number: Int,
        val user: GitHubUser,
        val milestone: GitHubPullRequestMilestone?,
    )
    
    
    val contributorLineRegex = "\\[(.*)]\\(https://github.com/(.*)\\)".toRegex()
    
    
    const val PAGE_SIZE = 100
    
    
    @DisableCachingByDefault(because = "Depends on GitHub API")
    abstract class AbstractCheckOrUpdateContributorsInReleaseNotes : DefaultTask() {
        @get: Internal
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Jun 24 07:54:08 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  7. okhttp-osgi-tests/src/test/kotlin/okhttp3/osgi/OsgiTest.kt

        }
      }
    
      private fun RepositoryPlugin.deployClassPath() {
        val classpath = System.getProperty("java.class.path")
        val entries =
          classpath
            .split(File.pathSeparator.toRegex())
            .dropLastWhile { it.isEmpty() }
            .toTypedArray()
        for (classPathEntry in entries) {
          deployFile(classPathEntry.toPath())
        }
      }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 5K bytes
    - Viewed (0)
  8. .teamcity/src/test/kotlin/CIConfigIntegrationTests.kt

                    it.dependencies.items.size,
                    stage.stageName.stageName,
                )
            }
        }
    
        private val largeSubProjectRegex = """\((\w+(_\d+))\)""".toRegex()
    
        /**
         * Test Coverage - AllVersionsCrossVersion Java8 Oracle Linux (core_2) -> core_2
         */
        private fun BaseGradleBuildType.getSubProjectSplitName() = largeSubProjectRegex.find(this.name)!!.groupValues[1]
    
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Thu Oct 16 01:27:05 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  9. okhttp/src/commonTest/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabaseTest.kt

          var publicSuffix = buffer.readUtf8LineStrict()
          if (publicSuffix.contains("*")) {
            // A wildcard rule, let's replace the wildcard with a value.
            publicSuffix = publicSuffix.replace("\\*".toRegex(), "square")
          }
          assertThat(publicSuffixDatabase.getEffectiveTldPlusOne(publicSuffix)).isNull()
          val test = "foobar.$publicSuffix"
          assertThat(publicSuffixDatabase.getEffectiveTldPlusOne(test)).isEqualTo(test)
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue May 27 22:00:49 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  10. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

            javaClass
              .getDeclaredField("masterSecret")
              .apply {
                isAccessible = true
              }.get(this) as? SecretKey
    
        val randomRegex = "\"random\"\\s+:\\s+\"([^\"]+)\"".toRegex()
    
        fun register() {
          // Enable JUL logging for SSL events, must be activated early or via -D option.
          System.setProperty("javax.net.debug", "")
          logger =
            Logger
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 10.9K bytes
    - Viewed (0)
Back to top