Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 14 for readText (0.35 seconds)

  1. 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)
  2. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/PreparePatchRelease.kt

        @get:Internal
        abstract val releasedVersionsFile: RegularFileProperty
    
        @TaskAction
        fun prepare() {
            val currentVersion = versionFile.asFile.get().readText().trim()
            val patchVersion = bumpPatchVersion(currentVersion)
            val major = currentVersion.split(".")[0].toInt()
    
            val previousReleasedVersion = fetchVersionFromGradleServices(major, currentVersion)
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Mar 23 14:47:12 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  3. 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)
  4. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateFixedIssuesInReleaseNotes.kt

        }
    
        private
        fun updateReleaseNotes(issuesList: String) {
            val notesFile = releaseNotes.asFile.get()
            val content = notesFile.readText()
            val newSection = "$FIXED_ISSUES_INTRO\n\n$issuesList\n"
    
            val newContent = if (content.contains(FIXED_ISSUES_INTRO)) {
                val introStart = content.indexOf(FIXED_ISSUES_INTRO)
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Mar 23 14:49:33 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  5. .teamcity/src/main/kotlin/model/FunctionalTestBucketProvider.kt

            val uuidToTestCoverage = model.stages.flatMap { it.functionalTests }.associateBy { it.uuid }
            val testCoverageAndBuckets: List<Map<String, Any>> = objectMapper.readValue(testBucketsJson.readText())
            testCoverageAndBuckets.associate { testCoverageAndBucket ->
                val testCoverage: TestCoverage = uuidToTestCoverage.getValue(testCoverageAndBucket["testCoverageUuid"].toString().toInt())
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Feb 12 14:43:33 GMT 2026
    - 8.1K bytes
    - Click Count (0)
  6. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/runtimes/CheckTargetRuntimes.kt

         */
        private fun calculateBuildFileMutation(
            projectPath: String,
            computed: Set<TargetRuntime>,
            buildFile: File
        ): BuildFileMutation {
            val lines = buildFile.readText().lines()
    
            val start = lines.indexOfFirst {
                Regex("\\s+computedRuntimes\\s+\\{").matches(it)
            }
            if (start == -1) {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Mar 11 22:40:18 GMT 2026
    - 13.8K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/helper/DocumentHelper.java

                                new ByteArrayInputStream(Base64.getUrlDecoder().decode(hash.substring(SIMILAR_DOC_HASH_PREFIX.length())))),
                        Constants.UTF_8))) {
                    return ReaderUtil.readText(reader);
                } catch (final Exception e) {
                    if (logger.isDebugEnabled()) {
                        logger.debug("Failed to decode similar document hash: hash={}", hash, e);
                    }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Mar 30 14:27:04 GMT 2026
    - 17.4K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/helper/SystemHelperTest.java

            FileUtil.writeBytes(designJspFile.getAbsolutePath(), "ok".getBytes());
            fileList = systemHelper.refreshDesignJspFiles();
            assertEquals(1, fileList.size());
            assertEquals("ok", FileUtil.readText(fileList.get(0).toFile()));
        }
    
        @Test
        public void test_updateSystemProperties() {
            final SystemHelper helper = new SystemHelper();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 44.4K bytes
    - Click Count (0)
  9. scripts/translate.py

    )
    
    general_prompt_path = Path(__file__).absolute().parent / "general-llm-prompt.md"
    general_prompt = general_prompt_path.read_text(encoding="utf-8")
    
    app = typer.Typer()
    
    
    @lru_cache
    def get_langs() -> dict[str, str]:
        return yaml.safe_load(Path("docs/language_names.yml").read_text(encoding="utf-8"))
    
    
    def generate_lang_path(*, lang: str, path: Path) -> Path:
        en_docs_path = Path("docs/en/docs")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:37:41 GMT 2026
    - 15.8K bytes
    - Click Count (0)
  10. docs_src/generate_clients/tutorial004_py310.py

    import json
    from pathlib import Path
    
    file_path = Path("./openapi.json")
    openapi_content = json.loads(file_path.read_text())
    
    for path_data in openapi_content["paths"].values():
        for operation in path_data.values():
            tag = operation["tags"][0]
            operation_id = operation["operationId"]
            to_remove = f"{tag}-"
            new_operation_id = operation_id[len(to_remove) :]
            operation["operationId"] = new_operation_id
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 493 bytes
    - Click Count (0)
Back to Top