Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 61 for setLocation (0.26 seconds)

  1. compat/maven-builder-support/src/test/java/org/apache/maven/building/FileSourceTest.java

        @Test
        void testGetLocation() {
            File txtFile = new File("target/test-classes/source.txt");
            FileSource source = new FileSource(txtFile);
            assertEquals(txtFile.getAbsolutePath(), source.getLocation());
        }
    
        @Test
        void testGetFile() {
            File txtFile = new File("target/test-classes/source.txt");
            FileSource source = new FileSource(txtFile);
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2.2K bytes
    - Click Count (0)
  2. compat/maven-toolchain-builder/src/main/java/org/apache/maven/toolchain/building/ToolchainsBuildingException.java

                writer.print("[");
                writer.print(problem.getSeverity());
                writer.print("] ");
                writer.print(problem.getMessage());
                String location = problem.getLocation();
                if (!location.isEmpty()) {
                    writer.print(" @ ");
                    writer.print(location);
                }
                writer.println();
            }
    
            return buffer.toString();
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Mar 05 09:37:42 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  3. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/building/SettingsBuildingException.java

                writer.print("[");
                writer.print(problem.getSeverity());
                writer.print("] ");
                writer.print(problem.getMessage());
                String location = problem.getLocation();
                if (!location.isEmpty()) {
                    writer.print(" @ ");
                    writer.println(location);
                }
            }
    
            return buffer.toString();
        }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sat Apr 05 11:52:05 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  4. compat/maven-builder-support/src/main/java/org/apache/maven/building/Source.java

         * empty string. The intention is to assist users during error reporting.
         *
         * @return A user-friendly hint about the location of the source, never {@code null}.
         */
        String getLocation();
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jan 15 18:51:29 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  5. api/maven-api-core/src/test/java/org/apache/maven/api/services/ModelSourceTest.java

            assertNull(source.getPath(), "Resolved sources should return null for getPath()");
            assertEquals(path.toString(), source.getLocation());
        }
    
        @Test
        void testModelIdFormat() {
            String location = "/tmp/test.xml";
            Path path = Paths.get(location);
            String modelId = "com.example:test-artifact:1.2.3";
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  6. compat/maven-builder-support/src/main/java/org/apache/maven/building/Problem.java

         * value is undefined.
         *
         * @return The location of the problem, never {@code null}.
         */
        String getLocation();
    
        /**
         * Gets the exception that caused this problem (if any).
         *
         * @return The exception that caused this problem or {@code null} if not applicable.
         */
        Exception getException();
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jan 15 18:51:29 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/services/Sources.java

            @Nonnull
            public InputStream openStream() throws IOException {
                return Files.newInputStream(path);
            }
    
            @Override
            @Nonnull
            public String getLocation() {
                return location;
            }
    
            @Override
            @Nullable
            public Source resolve(@Nonnull String relative) {
                return new PathSource(path.resolve(relative));
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/services/Source.java

         *   <li>Description: {@code <memory>} or {@code <database>}</li>
         * </ul>
         *
         * @return a non-null string describing the source location
         */
        @Nonnull
        String getLocation();
    
        /**
         * Resolves a new source relative to this one.
         * <p>
         * The resolution strategy depends on the source type:
         * <ul>
         *   <li>File sources resolve against their parent directory</li>
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jan 29 09:46:53 GMT 2025
    - 4K bytes
    - Click Count (0)
  9. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/CheckstylePrecommitPlugin.java

            });
    
            return checkstyleTask;
        }
    
        private static URI getBuildSrcCodeSource() {
            try {
                return CheckstylePrecommitPlugin.class.getProtectionDomain().getCodeSource().getLocation().toURI();
            } catch (URISyntaxException e) {
                throw new GradleException("Error determining build tools JAR location", e);
            }
        }
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Thu Jun 17 08:59:22 GMT 2021
    - 5.5K bytes
    - Click Count (0)
  10. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/BuildPlanExecutor.java

                        .map(MojoExecution::getPlugin)
                        .filter(p -> p.getLocation("version") != null
                                && p.getLocation("version").getSource() != null
                                && defaulModelId.equals(
                                        p.getLocation("version").getSource().getModelId()))
                        .distinct()
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Oct 16 06:12:36 GMT 2025
    - 55.1K bytes
    - Click Count (0)
Back to Top