Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for getPath (0.21 sec)

  1. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultArtifactResolver.java

                    for (ArtifactResult result : results) {
                        Artifact artifact = session.getArtifact(result.getArtifact());
                        Path path = result.getArtifact().getPath();
                        artifactManager.setPath(artifact, path);
                        paths.put(artifact, path);
                    }
                }
                return () -> paths;
            } catch (ArtifactResolutionException e) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 16:33:18 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  2. maven-compat/src/test/java/org/apache/maven/project/LegacyLocalRepositoryManager.java

            return getPathForLocalArtifact(artifact);
        }
    
        public String getPathForLocalMetadata(Metadata metadata) {
            return getPath(metadata, "local");
        }
    
        public String getPathForRemoteMetadata(Metadata metadata, RemoteRepository repository, String context) {
            return getPath(metadata, getRepositoryKey(repository, context));
        }
    
        String getRepositoryKey(RemoteRepository repository, String context) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  3. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultLocalRepositoryManager.java

            InternalSession s = InternalSession.from(session);
            String path = getManager(s, local).getPathForLocalArtifact(s.toArtifact(artifact));
            return local.getPath().resolve(path);
        }
    
        @Override
        public Path getPathForRemoteArtifact(
                Session session, LocalRepository local, RemoteRepository remote, Artifact artifact) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 16:33:18 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelBuilder.java

                        e);
                throw problems.newModelBuilderException();
            }
    
            if (modelSource.getPath() != null) {
                model = model.withPomFile(modelSource.getPath());
            }
    
            problems.setSource(model);
            modelValidator.validateFileModel(model, request, problems);
            if (hasFatalErrors(problems)) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri May 03 08:48:38 GMT 2024
    - 61.5K bytes
    - Viewed (0)
  5. maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

            if (modelSource instanceof FileModelSource fms) {
                return ModelSource.fromPath(fms.getPath());
            } else if (modelSource instanceof ArtifactModelSource ams) {
                return ModelSource.fromPath(ams.getPath(), ams.toString());
            } else {
                return new ModelSource() {
                    @Override
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 56.9K bytes
    - Viewed (0)
  6. maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java

            File f = new File(getBasedir(), path);
    
            f.createNewFile();
    
            return artifactRepositoryFactory.createArtifactRepository(
                    "test", "file://" + f.getPath(), repoLayout, null, null);
        }
    
        protected String getRepositoryLayout() {
            return "default";
        }
    
        protected ArtifactRepository localRepository() throws Exception {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  7. maven-compat/src/test/java/org/apache/maven/repository/TestRepositorySystem.java

                            + new File(System.getProperty("basedir", "."), "src/test/remote-repo")
                                    .getAbsoluteFile()
                                    .toURI()
                                    .getPath(),
                    new DefaultRepositoryLayout(),
                    new ArtifactRepositoryPolicy(),
                    new ArtifactRepositoryPolicy());
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  8. maven-compat/src/test/java/org/apache/maven/artifact/testutils/TestFileManager.java

            File file = new File(dir, filename);
    
            file.getParentFile().mkdirs();
    
            FileUtils.fileWrite(file.getPath(), encoding, contents);
    
            markForDeletion(file);
    
            return file;
        }
    
        public String getFileContents(File file, String encoding) throws IOException {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/AbstractSession.java

         *
         * @see ArtifactManager#setPath(Artifact, Path)
         */
        @Override
        public void setArtifactPath(@Nonnull Artifact artifact, @Nonnull Path path) {
            getService(ArtifactManager.class).setPath(artifact, path);
        }
    
        /**
         * Shortcut for <code>getService(ArtifactManager.class).getPath(...)</code>
         *
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 16:33:18 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/Session.java

         * Shortcut for {@code getService(ArtifactManager.class).getPath(...)}.
         *
         * @param artifact the artifact for which to get a path
         * @return path associated to the given artifact
         *
         * @see org.apache.maven.api.services.ArtifactManager#getPath(Artifact)
         */
        @Nonnull
        Optional<Path> getArtifactPath(@Nonnull Artifact artifact);
    
        /**
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 30.2K bytes
    - Viewed (0)
Back to top