Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for getLineNumber (0.11 sec)

  1. compat/maven-model-builder/src/test/java/org/apache/maven/model/inheritance/MergerTest.java

                assertEquals(13, propertiesLocation.getLineNumber());
                assertEquals(5, propertiesLocation.getColumnNumber());
                InputLocation filterPropLocation = propertiesLocation.getLocation("my.filter.value");
                assertNotNull(filterPropLocation);
                assertEquals(14, filterPropLocation.getLineNumber());
                assertEquals(31, filterPropLocation.getColumnNumber());
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/io/DefaultSettingsReader.java

            } catch (XMLStreamException e) {
                throw new SettingsParseException(
                        e.getMessage(),
                        e.getLocation().getLineNumber(),
                        e.getLocation().getColumnNumber(),
                        e);
            }
        }
    
        @Override
        public Settings read(Reader input, Map<String, ?> options) throws IOException {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. compat/maven-toolchain-builder/src/main/java/org/apache/maven/toolchain/io/DefaultToolchainsReader.java

            } catch (XMLStreamException e) {
                throw new ToolchainsParseException(
                        e.getMessage(),
                        e.getLocation().getLineNumber(),
                        e.getLocation().getColumnNumber(),
                        e);
            }
        }
    
        @Override
        public PersistedToolchains read(Reader input, Map<String, ?> options) throws IOException {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/io/DefaultMetadataReader.java

            } catch (XMLStreamException e) {
                throw new MetadataParseException(
                        e.getMessage(),
                        e.getLocation().getLineNumber(),
                        e.getLocation().getColumnNumber(),
                        e);
            }
        }
    
        public Metadata read(InputStream input, Map<String, ?> options) throws IOException {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. compat/maven-builder-support/src/test/java/org/apache/maven/building/DefaultProblemCollectorTest.java

            assertEquals("MESSAGE1", p1.getMessage());
            assertEquals(-1, p1.getLineNumber());
            assertEquals(-1, p1.getColumnNumber());
            assertNull(p1.getException());
    
            Problem p2 = collector.getProblems().get(1);
            assertEquals(Severity.WARNING, p2.getSeverity());
            assertEquals("", p2.getMessage());
            assertEquals(42, p2.getLineNumber());
            assertEquals(127, p2.getColumnNumber());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/building/DefaultSettingsProblem.java

                    buffer.append(", ");
                }
                buffer.append(getSource());
            }
    
            if (getLineNumber() > 0) {
                if (buffer.length() > 0) {
                    buffer.append(", ");
                }
                buffer.append("line ").append(getLineNumber());
            }
    
            if (getColumnNumber() > 0) {
                if (buffer.length() > 0) {
                    buffer.append(", ");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  7. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/building/SettingsProblem.java

         * is given by {@link #getSource()}.
         *
         * @return The one-based index of the line containing the problem or a non-positive value if unknown.
         */
        int getLineNumber();
    
        /**
         * Gets the one-based index of the column containing the problem. The column number should refer to some text file
         * that is given by {@link #getSource()}.
         *
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. compat/maven-builder-support/src/test/java/org/apache/maven/building/DefaultProblemTest.java

            assertEquals(-1, problem.getLineNumber());
    
            problem = new DefaultProblem(null, null, null, 42, -1, null);
            assertEquals(42, problem.getLineNumber());
    
            problem = new DefaultProblem(null, null, null, Integer.MAX_VALUE, -1, null);
            assertEquals(Integer.MAX_VALUE, problem.getLineNumber());
    
            // this case is not specified, might also return -1
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectBuilder.java

                                return problem.getSource();
                            }
    
                            @Override
                            public int getLineNumber() {
                                return problem.getLineNumber();
                            }
    
                            @Override
                            public int getColumnNumber() {
                                return problem.getColumnNumber();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8K bytes
    - Viewed (0)
  10. compat/maven-builder-support/src/main/java/org/apache/maven/building/DefaultProblem.java

                    buffer.append(", ");
                }
                buffer.append(getSource());
            }
    
            if (getLineNumber() > 0) {
                if (buffer.length() > 0) {
                    buffer.append(", ");
                }
                buffer.append("line ").append(getLineNumber());
            }
    
            if (getColumnNumber() > 0) {
                if (buffer.length() > 0) {
                    buffer.append(", ");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top