Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 172 for readlines (0.47 seconds)

  1. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/FixProjectHealthTask.kt

            dependenciesToModify.forEach { (filePath, dependencies) ->
                val file = File(filePath)
                if (!file.exists()) return@forEach
    
                val lines = file.readLines().toMutableList()
                dependencies.forEach { dependency ->
                    val dependencyRegex = Regex("""(api|implementation)(\(projects\.[a-zA-Z]+\)) \(was (api|implementation)\)""")
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Mar 03 06:57:08 GMT 2025
    - 6.2K bytes
    - Click Count (1)
  2. guava-tests/test/com/google/common/io/CharSourceTest.java

        assertEquals(ImmutableList.of("foo", "bar", "baz", "something"), lines.readLines());
        assertTrue(lines.wasStreamOpened() && lines.wasStreamClosed());
      }
    
      public void testReadLines_withProcessor() throws IOException {
        TestCharSource lines = new TestCharSource(LINES);
        List<String> list =
            lines.readLines(
                new LineProcessor<List<String>>() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  3. scripts/add_latest_release_date.py

    RELEASE_NOTES_FILE = "docs/en/docs/release-notes.md"
    RELEASE_HEADER_PATTERN = re.compile(r"^## (\d+\.\d+\.\d+)\s*(\(.*\))?\s*$")
    
    
    def main() -> None:
        with open(RELEASE_NOTES_FILE) as f:
            lines = f.readlines()
    
        for i, line in enumerate(lines):
            match = RELEASE_HEADER_PATTERN.match(line)
            if not match:
                continue
    
            version = match.group(1)
            date_part = match.group(2)
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Apr 03 12:06:36 GMT 2026
    - 1023 bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/io/ResourcesTest.java

      }
    
      public void testReadLines() throws IOException {
        // TODO(chrisn): Check in a better resource
        URL resource = getClass().getResource("testdata/i18n.txt");
        assertEquals(ImmutableList.of(I18N), Resources.readLines(resource, UTF_8));
      }
    
      public void testReadLines_withLineProcessor() throws IOException {
        URL resource = getClass().getResource("testdata/alice_in_wonderland.txt");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  5. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/AbstractVersionsUpdateTask.kt

            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
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Oct 24 09:10:28 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/io/ResourcesTest.java

      }
    
      public void testReadLines() throws IOException {
        // TODO(chrisn): Check in a better resource
        URL resource = getClass().getResource("testdata/i18n.txt");
        assertEquals(ImmutableList.of(I18N), Resources.readLines(resource, UTF_8));
      }
    
      public void testReadLines_withLineProcessor() throws IOException {
        URL resource = getClass().getResource("testdata/alice_in_wonderland.txt");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  7. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/NoticeTask.java

                boolean inNotice = false;
                StringBuilder header = new StringBuilder();
                String packageDeclaration = null;
    
                for (String line : FileUtils.readLines(sourceFile, "UTF-8")) {
                    if (isPackageInfo && packageDeclaration == null && line.startsWith("package")) {
                        packageDeclaration = line;
                    }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 6.9K bytes
    - Click Count (0)
  8. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/docker/TransformLog4jConfigFilter.java

            super(new StringReader(transform(in)));
        }
    
        private static String transform(Reader reader) throws IOException {
            final List<String> inputLines = IOUtils.readLines(reader);
            final List<String> outputLines = skipBlanks(transformConfig(inputLines));
            return String.join("\n", outputLines);
        }
    
        /** Squeeze multiple empty lines into a single line. */
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 4.4K bytes
    - Click Count (0)
  9. build-tools-internal/src/main/groovy/org/elasticsearch/gradle/internal/test/AntFixture.groovy

            return new File(baseDir, 'ports')
        }
    
        /** Returns an address and port suitable for a uri to connect to this node over http */
        @Internal
        String getAddressAndPort() {
            return portsFile.readLines("UTF-8").get(0)
        }
    
        /** Returns a file that wraps around the actual command when {@code spawn == true}. */
        @Internal
        protected File getWrapperScript() {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 10.1K bytes
    - Click Count (0)
  10. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/info/GlobalBuildInfoPlugin.java

                    String currentID = "";
    
                    try (BufferedReader reader = new BufferedReader(new FileReader(cpuInfoFile))) {
                        for (String line = reader.readLine(); line != null; line = reader.readLine()) {
                            if (line.contains(":")) {
                                List<String> parts = Arrays.stream(line.split(":", 2)).map(String::trim).collect(Collectors.toList());
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Aug 17 10:02:58 GMT 2021
    - 18.1K bytes
    - Click Count (0)
Back to Top