Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 69 for setDelegate (0.07 seconds)

  1. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/PackagingProfileActivator.java

        }
    
        private static Optional<String> getActivationPackaging(org.apache.maven.model.Profile profile) {
            return Optional.ofNullable(profile)
                    .map(org.apache.maven.model.Profile::getDelegate)
                    .map(Profile::getActivation)
                    .map(Activation::getPackaging);
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/PrefixedObjectValueSource.java

        }
    
        /**
         * {@inheritDoc}
         */
        @Override
        public String getLastExpression() {
            return ((QueryEnabledValueSource) getDelegate()).getLastExpression();
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  3. compat/maven-toolchain-model/src/main/java/org/apache/maven/toolchain/model/BaseObject.java

        }
    
        public BaseObject(Object delegate, ChildrenTracking parent) {
            this.delegate = requireNonNull(delegate, "delegate cannot be null");
            this.childrenTracking = parent;
        }
    
        public Object getDelegate() {
            return delegate;
        }
    
        public void update(Object newDelegate) {
            if (delegate != newDelegate) {
                if (childrenTracking != null) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2K bytes
    - Click Count (0)
  4. compat/maven-repository-metadata/src/test/java/org/apache/maven/artifact/repository/metadata/MetadataTest.java

                            createMetadataFromArtifact(artifact).getDelegate(), true)
                    .modelEncoding("UTF-16")
                    .build());
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            new MetadataStaxWriter().write(baos, source.getDelegate());
            Metadata source2 =
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 13.7K bytes
    - Click Count (0)
  5. impl/maven-core/src/main/java/org/apache/maven/project/ConnectedResource.java

                }
            }
    
            if (index >= 0) {
                // Replace the SourceRoot at the same position
                SourceRoot newSourceRoot = new DefaultSourceRoot(project.getBaseDirectory(), scope, this.getDelegate());
                sourcesList.set(index, newSourceRoot);
    
                // Update the project's sources, preserving order
                project.sources.clear();
                project.sources.addAll(sourcesList);
            }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Nov 07 13:11:07 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  6. impl/maven-core/src/main/java/org/apache/maven/lifecycle/Lifecycle.java

        private Map<String, LifecyclePhase> defaultPhases;
    
        private org.apache.maven.api.Lifecycle lifecycle;
    
        public String getId() {
            return id;
        }
    
        public org.apache.maven.api.Lifecycle getDelegate() {
            return lifecycle;
        }
    
        public List<String> getPhases() {
            return phases;
        }
    
        static Map<String, LifecyclePhase> getDefaultPhases(org.apache.maven.api.Lifecycle lifecycle) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Dec 13 23:04:37 GMT 2024
    - 3.7K bytes
    - Click Count (0)
  7. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/MavenMetadata.java

            try {
                Files.createDirectories(metadataPath.getParent());
                try (OutputStream output = Files.newOutputStream(metadataPath)) {
                    new MetadataStaxWriter().write(output, metadata.getDelegate());
                }
            } catch (IOException | XMLStreamException e) {
                throw new RepositoryException("Could not write metadata " + metadataPath + ": " + e.getMessage(), e);
            }
        }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  8. impl/maven-core/src/main/java/org/apache/maven/DefaultMaven.java

            for (MavenProject mavenProject : projects) {
                if (!"maven-plugin".equals(mavenProject.getPackaging())) {
                    Prerequisites prerequisites =
                            mavenProject.getModel().getDelegate().getPrerequisites();
                    if (prerequisites != null && prerequisites.getMaven() != null) {
                        logger.warn(
                                "The project {} uses prerequisites"
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon May 05 16:58:52 GMT 2025
    - 28.7K bytes
    - Click Count (1)
  9. impl/maven-core/src/test/java/org/apache/maven/project/PluginConnectionSimpleTest.java

            build.addPlugin(originalPlugin);
    
            MavenProject project = new MavenProject(model);
    
            // The old broken implementation would have done:
            // var plugin = getBuild().getDelegate().getPluginsAsMap().get(pluginKey);
            // return plugin != null ? new Plugin(plugin) : null;
            // This would create a disconnected Plugin that doesn't persist changes.
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jul 04 12:50:13 GMT 2025
    - 5K bytes
    - Click Count (0)
  10. api/maven-api-model/src/main/mdo/maven.mdo

         */
        public java.nio.file.Path getPomPath() {
            return (getDelegate().getPomFile() != null) ? getDelegate().getPomFile() : null;
        }
    
        public void setPomPath(java.nio.file.Path pomPath) {
            update( getDelegate().withPomFile(pomPath));
        }
    
        public void setModelEncoding(String modelEncoding) {
            update(getDelegate().with().modelEncoding(modelEncoding).build());
        }
    
        /**
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Nov 26 03:07:35 GMT 2025
    - 133.3K bytes
    - Click Count (0)
Back to Top