Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. impl/maven-core/src/main/java/org/apache/maven/artifact/repository/layout/DefaultRepositoryLayout.java

        public String getId() {
            return "default";
        }
    
        public String pathOf(Artifact artifact) {
            ArtifactHandler artifactHandler = artifact.getArtifactHandler();
    
            StringBuilder path = new StringBuilder(128);
    
            path.append(formatAsDirectory(artifact.getGroupId())).append(PATH_SEPARATOR);
            path.append(artifact.getArtifactId()).append(PATH_SEPARATOR);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/ActiveProjectArtifact.java

        public void setDependencyFilter(ArtifactFilter artifactFilter) {
            artifact.setDependencyFilter(artifactFilter);
        }
    
        /** {@inheritDoc} */
        public ArtifactHandler getArtifactHandler() {
            return artifact.getArtifactHandler();
        }
    
        /** {@inheritDoc} */
        public List<String> getDependencyTrail() {
            return artifact.getDependencyTrail();
        }
    
        /** {@inheritDoc} */
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/artifact/handler/manager/ArtifactHandlerManager.java

    import java.util.Map;
    
    import org.apache.maven.artifact.handler.ArtifactHandler;
    
    /**
     */
    public interface ArtifactHandlerManager {
        String ROLE = ArtifactHandlerManager.class.getName();
    
        ArtifactHandler getArtifactHandler(String type);
    
        @Deprecated
        void addHandlers(Map<String, ArtifactHandler> handlers);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/artifact/handler/manager/DefaultArtifactHandlerManager.java

                if (executionEvent.getType() == ExecutionEvent.Type.SessionEnded) {
                    allHandlers.clear();
                }
            }
        }
    
        @Override
        public ArtifactHandler getArtifactHandler(String id) {
            return allHandlers.computeIfAbsent(id, k -> {
                Type type = typeRegistry.require(id);
                return new DefaultArtifactHandler(
                        id,
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/layout/FlatRepositoryLayout.java

        private static final char GROUP_SEPARATOR = '.';
    
        public String getId() {
            return "flat";
        }
    
        public String pathOf(Artifact artifact) {
            ArtifactHandler artifactHandler = artifact.getArtifactHandler();
    
            StringBuilder path = new StringBuilder(128);
    
            path.append(artifact.getArtifactId()).append(ARTIFACT_SEPARATOR).append(artifact.getVersion());
    
            if (artifact.hasClassifier()) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/artifact/handler/manager/LegacyArtifactHandlerManager.java

                if (executionEvent.getType() == ExecutionEvent.Type.SessionEnded) {
                    allHandlers.clear();
                }
            }
        }
    
        public ArtifactHandler getArtifactHandler(String type) {
            requireNonNull(type, "null type");
            ArtifactHandler handler = allHandlers.get(type);
            if (handler == null) {
                handler = artifactHandlers.get(type);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultArtifactManager.java

        }
    
        private String id(org.apache.maven.artifact.Artifact artifact) {
            return artifact.getGroupId()
                    + ":" + artifact.getArtifactId()
                    + ":" + artifact.getArtifactHandler().getExtension()
                    + (artifact.getClassifier() == null || artifact.getClassifier().isEmpty()
                            ? ""
                            : ":" + artifact.getClassifier())
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. compat/maven-artifact/src/main/java/org/apache/maven/artifact/Artifact.java

        String getDownloadUrl();
    
        void setDownloadUrl(String downloadUrl);
    
        ArtifactFilter getDependencyFilter();
    
        void setDependencyFilter(ArtifactFilter artifactFilter);
    
        ArtifactHandler getArtifactHandler();
    
        List<String> getDependencyTrail();
    
        void setDependencyTrail(List<String> dependencyTrail);
    
        void setScope(String scope);
    
        VersionRange getVersionRange();
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultTypeRegistry.java

                Type type = types.get(id);
                if (type == null) {
                    // Copy data as the ArtifactHandler is not immutable, but Type should be.
                    ArtifactHandler handler = manager.getArtifactHandler(id);
                    type = new DefaultType(
                            id,
                            languageRegistry.lookup(handler.getLanguage()).orElseGet(() -> handler::getLanguage),
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/artifact/deployer/DefaultArtifactDeployer.java

                Artifact artifact,
                ArtifactRepository deploymentRepository,
                ArtifactRepository localRepository)
                throws ArtifactDeploymentException {
            String extension = artifact.getArtifactHandler().getExtension();
            File source = new File(basedir, finalName + "." + extension);
            deploy(source, artifact, deploymentRepository, localRepository);
        }
    
        public void deploy(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.4K bytes
    - Viewed (0)
Back to top