Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for fromPath (0.1 sec)

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

            Source source = Sources.fromPath(testFile);
            try (InputStream inputStream = source.openStream()) {
                String readContent = new String(inputStream.readAllBytes());
                assertEquals(content, readContent);
            }
        }
    
        @Test
        void testNullHandling() {
            assertThrows(NullPointerException.class, () -> Sources.fromPath(null));
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:45:25 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/services/Sources.java

         *
         * @param path the path to the file
         * @return a new Source instance
         * @throws NullPointerException if path is null
         */
        @Nonnull
        public static Source fromPath(@Nonnull Path path) {
            return new PathSource(requireNonNull(path, "path"));
        }
    
        /**
         * Creates a new build source for the specified path.
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:45:25 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

                                    ? Sources.fromPath(installationSettingsFile)
                                    : null)
                    .projectSettingsSource(
                            projectSettingsFile != null && Files.exists(projectSettingsFile)
                                    ? Sources.fromPath(projectSettingsFile)
                                    : null)
                    .userSettingsSource(
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Oct 28 13:01:07 UTC 2025
    - 43.2K bytes
    - Viewed (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/MavenInvoker.java

                                    ? Sources.fromPath(installationToolchainsFile)
                                    : null)
                    .userToolchainsSource(
                            userToolchainsFile != null && Files.isRegularFile(userToolchainsFile)
                                    ? Sources.fromPath(userToolchainsFile)
                                    : null)
                    .build();
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Sep 11 17:20:46 UTC 2025
    - 28.2K bytes
    - Viewed (0)
  5. RELEASE.md

    Deven Desai, Diego Caballero, Duncan Dean, Duncan Riach, Dwight J Lyle, Eamon
    Ito-Fisher, eashtian3, EFanZh, ejot, Elroy Ashtian Jr, Eric Schweitz, Fangjun
    Kuang, Fei Hu, fo40225, formath, Fred Reiss, Frederic Bastien, Fredrik Knutsson,
    G. Hussain Chinoy, Gabriel, gehring, George Grzegorz Pawelczak, Gianluca
    Varisco, Gleb Popov, Greg Peatfield, Guillaume Klein, Gurpreet Singh, Gustavo
    Registered: Tue Dec 30 12:39:10 UTC 2025
    - Last Modified: Tue Oct 28 22:27:41 UTC 2025
    - 740.4K bytes
    - Viewed (3)
Back to top