Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for readAllLines (0.05 seconds)

  1. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/GraphTest.java

        }
    
        @Test
        public void testPerf() throws IOException {
            List<String[]> data = new ArrayList<>();
            String k = null;
            for (String line : Files.readAllLines(Paths.get("src/test/resources/dag.txt"))) {
                if (line.startsWith("\t")) {
                    data.add(new String[] {k, line.trim()});
                } else {
                    k = line;
                }
            }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Mar 21 04:56:21 GMT 2025
    - 2K bytes
    - Click Count (0)
  2. .github/workflows/CheckBadMerge.groovy

            if (args.length != 1) {
                System.err.println("Usage: groovy CheckBadMerge.groovy <commits_file>")
                System.exit(1)
            }
    
            List<String> commits = Files.readAllLines(Paths.get(args[0]))
            try {
                commits.each { checkCommit(it) }
            } finally {
                THREAD_POOL.shutdown()
            }
        }
    
        static void checkCommit(String commit) {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Jan 24 10:03:31 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  3. impl/maven-core/src/test/java/org/apache/maven/artifact/handler/ArtifactHandlerTest.java

        @Test
        @SuppressWarnings("checkstyle:UnusedLocalVariable")
        void testAptConsistency() throws Exception {
            File apt = getTestFile("src/site/apt/artifact-handlers.apt");
    
            List<String> lines = Files.readAllLines(apt.toPath());
    
            for (String line : lines) {
                if (line.startsWith("||")) {
                    String[] cols = line.split("\\|\\|");
                    String[] expected = new String[] {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jul 23 17:27:08 GMT 2025
    - 4K bytes
    - Click Count (0)
  4. apache-maven/src/assembly/maven/bin/JvmConfigParser.java

         */
        static String parseJvmConfig(Path jvmConfigPath, String mavenProjectBasedir) throws IOException {
            StringBuilder result = new StringBuilder();
    
            for (String line : Files.readAllLines(jvmConfigPath, StandardCharsets.UTF_8)) {
                line = processLine(line, mavenProjectBasedir);
                if (line.isEmpty()) {
                    continue;
                }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Dec 10 16:40:06 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  5. build-logic/documentation/src/main/groovy/gradlebuild/docs/FindMissingDocumentationFiles.java

                            // The regex `^\\s*\\[\\[(.*)\\]\\]` looks for lines starting with '[[...]]'
                            // and captures the content within the brackets.
                            Files.readAllLines(file).forEach(line -> {
                                if (line.matches("^\\s*\\[\\[(.*)\\]\\].*")) {
                                    String anchorName = line.replaceAll("^\\s*\\[\\[(.*)\\]\\].*$", "$1");
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Aug 21 15:38:58 GMT 2025
    - 8.5K bytes
    - Click Count (0)
Back to Top