Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for writeText (0.05 sec)

  1. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/androidhomewarmup/AndroidHomeWarmupTask.kt

            File(projectDir, "build.gradle").writeText(generateBuildGradle(version))
            File(projectDir, "settings.gradle.kts").writeText(generateSettingsGradleKts(version))
            File(projectDir, "gradle.properties").writeText(generateGradleProperties())
    
            val manifestDir = File(projectDir, "src/main")
            manifestDir.mkdirs()
            File(manifestDir, "AndroidManifest.xml").writeText(generateAndroidManifest())
        }
    
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Dec 09 09:24:29 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  2. 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 Dec 31 11:36:14 UTC 2025
    - Last Modified: Thu Oct 30 16:56:31 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  3. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/AbstractVersionsUpdateTask.kt

            linePrefix: String,
            firstVersion: String,
            latestVersion: String,
        ) {
            val docFile = compatibilityDocFile.get().asFile
            var lineFound = false
            docFile.writeText(
                docFile.readLines().joinToString(separator = "\n", postfix = "\n") { line ->
                    if (line.startsWith(linePrefix)) {
                        lineFound = true
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Oct 24 09:10:28 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  4. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/tasks/GenerateAutoTestedSamplesTestTask.kt

            val targetFilePath = "${relativePath.substringBeforeLast("/")}/${className}.groovy"
            val targetFile = outputDir.file(targetFilePath).get().asFile
            targetFile.parentFile.mkdirs()
            targetFile.writeText(
                """
    package org.gradle.samples
    import org.gradle.integtests.fixtures.AbstractAutoTestedSamplesTest
    import org.junit.Test
    
    class ${className} extends AbstractAutoTestedSamplesTest {
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Dec 19 06:44:41 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/PdfExtractor.java

                final PDDocument doc = document;
                final Set<Exception> exceptionSet = new HashSet<>();
                final Thread task = new Thread(() -> {
                    try {
                        stripper.writeText(doc, writer);
                        extractEmbeddedDocuments(doc, writer);
                        extractAnnotations(doc, writer);
                    } catch (final Exception e) {
                        exceptionSet.add(e);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Nov 23 12:19:14 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  6. 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())
            }
    
        protected
        fun File.withKotlinFile(path: String, @Language("kotlin") text: String): File = withFile(path, text)
    
        protected
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Dec 30 10:14:25 UTC 2025
    - 18K bytes
    - Viewed (0)
  7. tests/test_file_and_form_order_issue_9116.py

    
    client = TestClient(app)
    
    
    @pytest.fixture
    def tmp_file_1(tmp_path: Path) -> Path:
        f = tmp_path / "example1.txt"
        f.write_text("foo")
        return f
    
    
    @pytest.fixture
    def tmp_file_2(tmp_path: Path) -> Path:
        f = tmp_path / "example2.txt"
        f.write_text("bar")
        return f
    
    
    @pytest.mark.parametrize("endpoint_path", ("/file_before_form", "/file_after_form"))
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  8. scripts/docs.py

        if new_path.exists():
            typer.echo(f"The language was already created: {lang}")
            raise typer.Abort()
        new_path.mkdir()
        new_config_path: Path = Path(new_path) / mkdocs_name
        new_config_path.write_text("INHERIT: ../en/mkdocs.yml\n", encoding="utf-8")
        new_config_docs_path: Path = new_path / "docs"
        new_config_docs_path.mkdir()
        en_index_path: Path = en_docs_path / "docs" / "index.md"
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Dec 21 17:40:17 UTC 2025
    - 16.9K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_request_forms_and_files/test_tutorial001.py

                },
            ]
        }
    
    
    def test_post_files_and_token(tmp_path, app: FastAPI):
        patha = tmp_path / "test.txt"
        pathb = tmp_path / "testb.txt"
        patha.write_text("<file content>")
        pathb.write_text("<file b content>")
    
        client = TestClient(app)
        with patha.open("rb") as filea, pathb.open("rb") as fileb:
            response = client.post(
                "/files/",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  10. docs_src/generate_clients/tutorial004_py39.py

            operation_id = operation["operationId"]
            to_remove = f"{tag}-"
            new_operation_id = operation_id[len(to_remove) :]
            operation["operationId"] = new_operation_id
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 493 bytes
    - Viewed (0)
Back to top