Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 27 for getExtension (0.08 seconds)

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

         * The dot separator is not included in the returned string.
         *
         * @return the file extension or an empty string if none, never {@code null}
         * @see ArtifactCoordinates#getExtension()
         */
        @Nonnull
        String getExtension();
    
        /**
         * Determines whether this artifact uses a snapshot version.
         *
         * @return {@code true} if the artifact is a snapshot, {@code false} otherwise
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Jun 26 07:56:58 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/ArtifactCoordinates.java

         * The dot separator is not included in the returned string.
         *
         * @return the file extension or an empty string if none, never {@code null}
         */
        @Nonnull
        String getExtension();
    
        /**
         * {@return a unique string identifying this artifact}.
         *
         * The default implementation returns a colon-separated list of group
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Jun 26 07:56:58 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  3. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/type/DefaultType.java

                this.type = type;
            }
    
            @Override
            public String getId() {
                return type.id();
            }
    
            @Override
            public String getExtension() {
                return type.getExtension();
            }
    
            @Override
            public String getClassifier() {
                return type.getClassifier() == null ? "" : type.getClassifier();
            }
    
            @Override
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Mar 19 13:42:58 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  4. 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())
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Sep 17 16:01:38 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  5. compat/maven-embedder/src/main/java/org/apache/maven/cli/internal/ExtensionResolutionException.java

                oldExtension.setClassLoadingStrategy(extension.getClassLoadingStrategy());
            }
            this.extension = oldExtension;
        }
    
        public CoreExtension getExtension() {
            return extension;
        }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Oct 27 13:24:03 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  6. impl/maven-core/src/main/java/org/apache/maven/RepositoryUtils.java

        }
    
        public static ArtifactHandler newHandler(Artifact artifact) {
            String type = artifact.getProperty(ArtifactProperties.TYPE, artifact.getExtension());
            return new DefaultArtifactHandler(
                    type,
                    artifact.getExtension(),
                    null,
                    null,
                    null,
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Sep 04 18:33:16 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  7. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/type/TypeDeriver.java

                        currentType = registry.get(node.getArtifact()
                                .getProperty(
                                        ArtifactProperties.TYPE, node.getArtifact().getExtension()));
                        if (currentType == null) {
                            currentType = jar;
                        }
                    }
                    if (!stack.isEmpty()) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sat Mar 28 11:22:05 GMT 2026
    - 8K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/core/io/ResourceUtil.java

        /**
         * Returns the extension of the path.
         *
         * @param path
         *            The path. Must not be {@literal null}.
         * @return The extension.
         */
        public static String getExtension(final String path) {
            assertArgumentNotNull("path", path);
    
            final int extPos = path.lastIndexOf(".");
            if (extPos >= 0) {
                return path.substring(extPos + 1);
            }
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 14.7K bytes
    - Click Count (0)
  9. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/ConsumerPomArtifactTransformer.java

            List<Artifact> mains = new ArrayList<>();
            for (Artifact artifact : artifacts) {
                if ("pom".equals(artifact.getExtension()) || artifact.getExtension().startsWith("pom.")) {
                    if (CONSUMER_POM_CLASSIFIER.equals(artifact.getClassifier())) {
                        consumers.add(artifact);
                    } else if ("".equals(artifact.getClassifier())) {
                        mains.add(artifact);
                    }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Mar 04 19:49:40 GMT 2026
    - 8.9K bytes
    - Click Count (0)
  10. impl/maven-core/src/main/java/org/apache/maven/ReactorReader.java

                    || ("jar".equals(artifact.getExtension()) && "tests".equals(artifact.getClassifier()));
        }
    
        private File findInProjectLocalRepository(Artifact artifact) {
            // Prefer the consumer POM when resolving POMs from the project-local repository,
            // to avoid treating a build POM as a repository (consumer) POM.
            if ("pom".equals(artifact.getExtension())) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Dec 15 11:20:38 GMT 2025
    - 24.4K bytes
    - Click Count (0)
Back to Top