Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 47 for Replace (0.23 sec)

  1. 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)
            }
        }
    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)
  2. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.code-quality.gradle.kts

    errorproneExtension.disabledChecks.addAll(
        // DISCUSS
        "EqualsGetClass", // Let's agree if we want to adopt Error Prone's idea of valid equals()
        "JdkObsolete", // Most of the checks are good, but we do not want to replace all LinkedLists without a good reason
    
        // NEVER
        "MissingSummary", // We have another mechanism to check Javadocs on public API
        "InjectOnConstructorOfAbstractClass", // We use abstract injection as a pattern
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Tue Jan 30 10:26:21 GMT 2024
    - 6K bytes
    - Viewed (0)
  3. .teamcity/src/main/kotlin/projects/StageProject.kt

            performanceTests.forEach { performanceTestTrigger ->
                // The space removal is necessary - otherwise it doesn't show
                val artifactDirName = performanceTestTrigger.name.replace(" ", "")
                performancePartialTrigger.dependencies {
                    artifacts(performanceTestTrigger) {
    Plain Text
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Tue Dec 05 00:08:14 GMT 2023
    - 9.2K bytes
    - Viewed (0)
  4. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/JavaSourceQueries.kt

    private
    fun <T : NodeWithSimpleName<*>> T.matchesName(candidateName: String) =
        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
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Dec 01 20:12:19 GMT 2023
    - 6.6K bytes
    - Viewed (0)
  5. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/PublicAPIRulesTest.groovy

        def overrideAnnotation = Stub(JApiAnnotation)
        def injectAnnotation = Stub(JApiAnnotation)
    
        def setup() {
            new File(tmp, "org/gradle/api").mkdirs()
            sourceFile = new File(tmp, "${TEST_INTERFACE_NAME.replace('.', '/')}.java").tap { text = "" }
    
            jApiClassifier.fullyQualifiedName >> TEST_INTERFACE_NAME
            jApiField.name >> 'field'
            jApiField.jApiClass >> jApiClassifier
            jApiMethod.name >> 'method'
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Dec 01 20:12:19 GMT 2023
    - 16K bytes
    - Viewed (0)
  6. build-logic/build-update-utils/src/main/kotlin/gradlebuild.wrapper.gradle.kts

        inputs.property("jvmOpts", jvmOpts)
        doLast {
            val optsEnvVar = "DEFAULT_JVM_OPTS"
            scriptFile.writeText(scriptFile.readText().replace("$optsEnvVar='", "$optsEnvVar='$jvmOpts "))
            batchScript.writeText(batchScript.readText().replace("set $optsEnvVar=", "set $optsEnvVar=$jvmOpts "))
        }
    }
    
    fun Project.wrapperUpdateTask(name: String, label: String) {
        val wrapperTaskName = "${name}Wrapper"
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Sat Sep 30 16:17:28 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  7. build-logic/build-init-samples/src/main/kotlin/gradlebuild/samples/SamplesGenerator.kt

                .withTemplate(templateFolder.template("$templateFragment.adoc"))
                .withTarget(settings.target.file("../README.adoc").asFile)
                .withBinding("language", descriptor.language.toString().replace("C++", "{cpp}"))
                .withBinding("languageLC", descriptor.language.getName().toLowerCase())
                .withBinding("languageExtension", descriptor.language.extension)
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Tue Feb 06 17:51:21 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  8. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/testcleanup/TestFilesCleanupService.kt

                e.printStackTrace()
            }
        }
    
        private
        fun TestFilesCleanupProjectState.prepareReportForCiPublishing(reports: List<File>) {
            val projectPathName = projectPath.get().replace(':', '-')
            val projectBuildDirPath = projectBuildDir.asFile.get().toPath()
    
            reports.filter { it.isDirectory }.forEach {
                val destFile = rootBuildDir.resolve("report$projectPathName-${it.name}.zip")
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Jul 28 16:19:47 GMT 2023
    - 12.5K bytes
    - Viewed (0)
  9. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/LinkRenderer.java

                Element linkElement = document.createElement("ulink");
                linkElement.setAttribute("url", String.format("https://docs.oracle.com/javase/%s/docs/api/%s.html", javaVersion,
                        className.replace(".", "/")));
                Element classNameElement = document.createElement("classname");
                classNameElement.appendChild(document.createTextNode(StringUtils.substringAfterLast(className, ".")));
    Java
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 6.3K bytes
    - Viewed (0)
  10. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/ApiTypeProvider.kt

            "void" -> "Unit"
            "?" -> "*"
            in mappedTypeStrings.keys -> mappedTypeStrings[binaryName]!!
            in primitiveTypeStrings.keys -> primitiveTypeStrings[binaryName]!!
            else -> binaryName.replace('$', '.')
        }
    
    
    /**
     * See https://kotlinlang.org/docs/reference/java-interop.html#mapped-types
     */
    private
    val mappedTypeStrings =
        mapOf(
            // Built-ins
    Plain Text
    - Registered: Wed Feb 28 11:36:09 GMT 2024
    - Last Modified: Tue Feb 06 19:56:10 GMT 2024
    - 20.8K bytes
    - Viewed (0)
Back to top