Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 30 for readText (0.64 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. build-logic-settings/architecture-docs/src/main/kotlin/gradlebuild/GeneratorTask.kt

        @TaskAction
        fun generate() {
            val markdownFile = outputFile.asFile.get()
            val head = if (markdownFile.exists()) {
                val content = markdownFile.readText().lines()
                val markerPos = content.indexOfFirst { it.contains(markerComment) }
                require(markerPos >= 0) { "Could not locate the generated diagram in $markdownFile" }
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Jan 30 15:37:56 GMT 2026
    - 3.8K bytes
    - Click Count (0)
  6. .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)
  7. 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)
  8. 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)
  9. 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)
  10. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/AbstractCrawlerService.java

            if (mappingMetadata == null || mappingMetadata.sourceAsMap().isEmpty()) {
                final AcknowledgedResponse putMappingResponse = fesenClient.get(c -> {
                    final String source = FileUtil.readText("mapping/" + mappingName + ".json");
                    return c.admin().indices().preparePutMapping(index).setSource(source, XContentType.JSON).execute();
                });
                if (putMappingResponse.isAcknowledged()) {
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Thu Nov 20 08:40:57 GMT 2025
    - 34.3K bytes
    - Click Count (0)
Back to Top