Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for fromPath (0.09 sec)

  1. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelSource.java

        }
    
        @Nullable
        ModelSource resolve(@Nonnull ModelLocator modelLocator, @Nonnull String relative);
    
        @Nonnull
        static ModelSource fromPath(@Nonnull Path path) {
            return fromPath(path, null);
        }
    
        @Nonnull
        static ModelSource fromPath(@Nonnull Path path, @Nullable String location) {
            return new PathSource(nonNull(path, "path cannot be null"), location);
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Aug 29 18:21:40 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/services/SettingsBuilderRequest.java

        @Nonnull
        static SettingsBuilderRequest build(
                @Nonnull Session session, @Nonnull Path installationSettingsPath, @Nonnull Path userSettingsPath) {
            return build(session, Source.fromPath(installationSettingsPath), null, Source.fromPath(userSettingsPath));
        }
    
        @Nonnull
        static SettingsBuilderRequest build(
                @Nonnull Session session,
                @Nullable Source installationSettingsSource,
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Oct 17 09:25:53 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/services/ToolchainsBuilderRequest.java

                                    ? Source.fromPath(installationToolchainsFile)
                                    : null)
                    .userToolchainsSource(
                            userToolchainsPath != null && Files.exists(userToolchainsPath)
                                    ? Source.fromPath(userToolchainsPath)
                                    : null)
                    .build();
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Aug 22 14:47:43 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomBuilder.java

            @Override
            public String getLocation() {
                return src.toString();
            }
    
            @Override
            public Source resolve(String relative) {
                return ModelSource.fromPath(path.resolve(relative));
            }
    
            @Override
            public ModelSource resolve(ModelLocator locator, String relative) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 11K bytes
    - Viewed (0)
  5. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/building/DefaultSettingsBuilder.java

            if (file != null && file.exists()) {
                return org.apache.maven.api.services.Source.fromPath(file.toPath());
            } else if (source instanceof FileSource fs) {
                return org.apache.maven.api.services.Source.fromPath(fs.getPath());
            } else if (source != null) {
                return new org.apache.maven.api.services.Source() {
                    @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  6. compat/maven-toolchain-builder/src/main/java/org/apache/maven/toolchain/building/DefaultToolchainsBuilder.java

            }
        }
    
        private Source convert(org.apache.maven.building.Source source) {
            if (source instanceof FileSource fs) {
                return Source.fromPath(fs.getPath());
            } else if (source != null) {
                return new Source() {
                    @Override
                    public Path getPath() {
                        return null;
                    }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. src/cmd/api/main_test.go

    func (w *Walker) ImportFrom(fromPath, fromDir string, mode types.ImportMode) (*types.Package, error) {
    	pkg, err := w.importFrom(fromPath, fromDir, mode)
    	if err != nil {
    		return nil, err
    	}
    	return pkg.Package, nil
    }
    
    func (w *Walker) import_(name string) (*apiPackage, error) {
    	return w.importFrom(name, "", 0)
    }
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 04 18:16:59 UTC 2024
    - 31.4K bytes
    - Viewed (0)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/DefaultMavenInvoker.java

                                    ? Source.fromPath(installationToolchainsFile)
                                    : null)
                    .userToolchainsSource(
                            userToolchainsFile != null && Files.isRegularFile(userToolchainsFile)
                                    ? Source.fromPath(userToolchainsFile)
                                    : null)
                    .build();
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  9. api/maven-api-core/src/main/java/org/apache/maven/api/services/Source.java

         */
        @Nullable
        Source resolve(@Nonnull String relative);
    
        /**
         * Creates a Source for the following Path
         */
        @Nonnull
        static Source fromPath(@Nonnull Path path) {
            return new PathSource(nonNull(path, "path cannot be null"));
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

                                    ? Source.fromPath(installationSettingsFile)
                                    : null)
                    .projectSettingsSource(
                            projectSettingsFile != null && Files.exists(projectSettingsFile)
                                    ? Source.fromPath(projectSettingsFile)
                                    : null)
                    .userSettingsSource(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 38K bytes
    - Viewed (0)
Back to top