- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for writeText (0.08 sec)
-
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AlphabeticalAcceptedApiChangesTaskIntegrationTest.kt
@Test fun `verify AlphabeticalAcceptedApiChangesTask detects misordered changes`() { //language=JSON firstAcceptedApiChangesFile.writeText( """ { "acceptedApiChanges": [ { "type": "org.gradle.api.tasks.AbstractExecTask",
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Jun 04 14:00:46 UTC 2024 - 8.3K bytes - Viewed (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild.wrapper.gradle.kts
val jvmOpts = "-Dfile.encoding=UTF-8" 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) {
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Sep 17 08:58:33 UTC 2024 - 1.4K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractAcceptedApiChangesMaintenanceTaskIntegrationTest.kt
*/ protected fun setupPluginRequirements() { projectDir.resolve("version.txt").writeText("9999999.0") // All released versions should be lower than this projectDir.resolve("released-versions.json").writeText( """ { "latestReleaseSnapshot": { "version": "7.6-20220831090819+0000",
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Jun 04 14:00:46 UTC 2024 - 6K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/SortAcceptedApiChangesTaskIntegrationTest.kt
@Test fun `verify misordered changes can be sorted`() { //language=JSON firstAcceptedApiChangesFile.writeText( """ { "acceptedApiChanges": [ { "type": "org.gradle.api.file.SourceDirectorySet",
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Jun 04 14:00:46 UTC 2024 - 9.7K bytes - Viewed (0) -
build-logic-commons/publishing/src/main/kotlin/gradlebuild.kotlin-dsl-plugin-bundle.gradle.kts
// This should be unified with publish-public-libraries if possible doLast { repoDir.get().asFileTree.matching { include("**/maven-metadata.xml") }.forEach { it.writeText(it.readText().replace("\\Q<lastUpdated>\\E\\d+\\Q</lastUpdated>\\E".toRegex(), "<lastUpdated>${Year.now().value}0101000000</lastUpdated>")) } repoDir.get().asFileTree.matching { include("**/*.module") }.forEach {
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Aug 08 14:54:27 UTC 2024 - 6.4K bytes - Viewed (0) -
build-logic-commons/publishing/src/main/kotlin/gradlebuild.publish-public-libraries.gradle.kts
moduleBaseDir.deleteRecursively() } } doLast { localRepository.get().file("org/gradle/${baseName.get()}/maven-metadata.xml").asFile.apply { writeText(readText().replace("\\Q<lastUpdated>\\E\\d+\\Q</lastUpdated>\\E".toRegex(), "<lastUpdated>${Year.now().value}0101000000</lastUpdated>")) }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Sep 19 13:21:47 UTC 2024 - 5.9K bytes - Viewed (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateContributorsInReleaseNotes.kt
val (linesBeforeContributors, _, linesAfterContributors) = parseReleaseNotes() releaseNotes.asFile.get().writeText( "${linesBeforeContributors.joinToString("\n")}\n${sortedContributors.joinToString(",\n") { "[${it.value.name ?: it.key}](https://github.com/${it.key})" }}\n\n${linesAfterContributors.joinToString("\n")}\n" )
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Aug 21 11:42:19 UTC 2024 - 2K bytes - Viewed (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateKotlinVersions.kt
fun updateCompatibilityDoc(latestKotlinVersions: List<String>) { val docFile = compatibilityDocFile.get().asFile val linePrefix = "Gradle is tested with Kotlin" var lineFound = false docFile.writeText( docFile.readLines().joinToString(separator = "\n", postfix = "\n") { line -> if (line.startsWith(linePrefix)) { lineFound = true
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Jul 23 18:27:26 UTC 2024 - 5.2K bytes - Viewed (0) -
.teamcity/src/main/kotlin/model/FunctionalTestBucketGenerator.kt
private val buckets: Map<TestCoverage, List<SmallSubprojectBucket>> = buildBuckets(testTimeDataJson, model) fun generate(jsonFile: File) { jsonFile.writeText( JSON.toJSONString( buckets.map { TestCoverageAndBucketSplits(it.key.uuid, it.value.map { it.toJsonBucket() }) },
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Aug 29 11:04:49 UTC 2024 - 8.5K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractBinaryCompatibilityTest.kt
protected fun File.withFile(path: String, text: String = ""): File = resolve(path).apply { parentFile.mkdirs() writeText(text.trimIndent()) } private fun File.withUniqueDirectory(prefixPath: String): File = Files.createTempDirectory( withDirectory(prefixPath.substringBeforeLast("/")).toPath(),
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Jun 04 14:00:46 UTC 2024 - 16.4K bytes - Viewed (0)