Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for resolvedSource (0.52 sec)

  1. api/maven-api-core/src/test/java/org/apache/maven/api/services/SourcesTest.java

        }
    
        @Test
        void testResolvedSource() {
            Path path = Paths.get("/tmp");
            String location = "custom-location";
            ModelSource source = Sources.resolvedSource(path, location);
    
            assertNotNull(source);
            assertInstanceOf(Sources.ResolvedPathSource.class, source);
            assertNull(source.getPath());
            assertEquals(location, source.getLocation());
        }
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Mar 21 04:56:21 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/services/Sources.java

         * @return a new ModelSource instance configured as a resolved source
         * @throws NullPointerException if path is null
         */
        @Nonnull
        public static ModelSource resolvedSource(@Nonnull Path path, @Nullable String location) {
            return new ResolvedPathSource(requireNonNull(path, "path"), location);
        }
    
        /**
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Feb 07 00:45:02 UTC 2025
    - 8K bytes
    - Viewed (0)
Back to top