Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 52 for read_text (0.07 seconds)

  1. 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) {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Tue Sep 17 08:58:33 GMT 2024
    - 1.4K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/core/io/FileUtil.java

         * @param path
         *            The file path. Must not be {@literal null} or empty.
         * @return The text read from the file.
         */
        public static String readText(final String path) {
            assertArgumentNotEmpty("path", path);
            return readText(path, Charset.defaultCharset().name());
        }
    
        /**
         * Reads text from a file using the default encoding.
         *
         * @param file
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Feb 12 12:10:45 GMT 2026
    - 13.2K bytes
    - Click Count (0)
  3. build-logic/cleanup/src/main/kotlin/gradlebuild/testing/services/BuildBucketProvider.kt

                println("Tests to be included:\n$content")
                IncludeTestClassProvider(readTestClasses(content))
            }
            parameters.excludeTestClasses.get().isNotBlank() -> {
                val content = parameters.repoRoot.file("test-splits/exclude-test-classes.properties").get().asFile.readText()
                println("Tests to be excluded:\n$content")
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Jun 28 08:29:28 GMT 2024
    - 4.9K bytes
    - Click Count (0)
  4. build-logic-commons/publishing/src/main/kotlin/gradlebuild.kotlin-dsl-plugin-bundle.gradle.kts

                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 {
                val content = it.readText()
                    .replace("\"buildId\":\\s+\"\\w+\"".toRegex(), "\"buildId\": \"\"")
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Mar 13 11:01:20 GMT 2026
    - 6.2K bytes
    - Click Count (0)
  5. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/SortAcceptedApiChangesTaskIntegrationTest.kt

                            }
                        ]
                    }
                """)
            val actualFirstJson = loadChangesJson(firstAcceptedApiChangesFile.readText())
            val actualSecondJson = loadChangesJson(secondAcceptedApiChangesFile.readText())
    
            assertEquals(expectedFirstJson, actualFirstJson)
            assertEquals(expectedSecondJson, actualSecondJson)
        }
    
        private
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Mar 14 02:17:00 GMT 2025
    - 9.7K bytes
    - Click Count (0)
  6. 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."
                )
            }
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Jul 07 13:12:26 GMT 2021
    - 1.2K bytes
    - Click Count (0)
  7. docs_src/websockets_/tutorial002_an_py310.py

        await websocket.accept()
        while True:
            data = await websocket.receive_text()
            await websocket.send_text(
                f"Session cookie or query token value is: {cookie_or_token}"
            )
            if q is not None:
                await websocket.send_text(f"Query parameter q is: {q}")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 27 12:34:37 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  8. docs_src/websockets_/tutorial002_py310.py

        await websocket.accept()
        while True:
            data = await websocket.receive_text()
            await websocket.send_text(
                f"Session cookie or query token value is: {cookie_or_token}"
            )
            if q is not None:
                await websocket.send_text(f"Query parameter q is: {q}")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 27 12:34:37 GMT 2026
    - 2.7K bytes
    - Click Count (0)
  9. build-logic-commons/publishing/src/main/kotlin/gradlebuild.publish-public-libraries.gradle.kts

                    writeText(readText().replace("\\Q<lastUpdated>\\E\\d+\\Q</lastUpdated>\\E".toRegex(), "<lastUpdated>${Year.now().value}0101000000</lastUpdated>"))
                }
                localRepository.get().asFileTree.matching { include("**/*.module") }.forEach {
                    val content = it.readText()
                        .replace("\"buildId\":\\s+\"\\w+\"".toRegex(), "\"buildId\": \"\"")
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Oct 30 16:56:31 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  10. tests/test_dependency_after_yield_websockets.py

        await websocket.accept()
        for item in session:
            await websocket.send_text(f"{item}")
    
    
    @app.websocket("/ws-broken")
    async def websocket_endpoint_broken(websocket: WebSocket, session: BrokenSessionDep):
        await websocket.accept()
        for item in session:
            await websocket.send_text(f"{item}")  # pragma no cover
    
    
    client = TestClient(app)
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 2K bytes
    - Click Count (0)
Back to Top