Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 33 for readText (0.05 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.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)
  4. src/main/java/org/codelibs/core/io/ReaderUtil.java

         * </p>
         *
         * @param reader
         *            the character input stream to read from (must not be {@literal null})
         * @return the text read from the reader
         */
        public static String readText(final Reader reader) {
            assertArgumentNotNull("reader", reader);
    
            final StringBuilder buf = new StringBuilder(BUF_SIZE);
            CopyUtil.copy(reader, buf);
            return new String(buf);
        }
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  5. 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)
  6. 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)
  7. 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)
  8. .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)
  9. .teamcity/src/test/kotlin/CIConfigIntegrationTests.kt

            exceptions: List<String>,
        ): Boolean {
            srcRoot.walkTopDown().forEach { file ->
                if (file.extension == "groovy" || file.extension == "java") {
                    val originalText = file.readText()
                    val text =
                        originalText
                            .lineSequence()
                            .filterNot { it.trim().startsWith("//") }
                            .joinToString("\n")
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Oct 16 01:27:05 GMT 2025
    - 14.6K bytes
    - Click Count (0)
  10. 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)
Back to Top