Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 1,413 for copyTo (0.03 seconds)

  1. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/UpgradeResult.java

        public UpgradeResult {
            // Defensive copying to ensure immutability
            processedPoms = Set.copyOf(processedPoms);
            modifiedPoms = Set.copyOf(modifiedPoms);
            errorPoms = Set.copyOf(errorPoms);
        }
    
        /**
         * Creates a successful result with the specified processed and modified POMs.
         */
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Jun 07 06:22:47 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  2. impl/maven-core/src/test/java/org/apache/maven/graph/ProjectSelectorTest.java

                    sut.getOptionalProjectsBySelectors(mavenExecutionRequest, listOfProjects, selectors);
    
            assertEquals(1, optionalProjectsBySelectors.size());
            assertEquals(List.of(mavenProject), List.copyOf(optionalProjectsBySelectors));
        }
    
        @Test
        void getRequiredProjectsBySelectorsThrowsMavenExecutionException() {
            final HashSet<String> selectors = new HashSet<>();
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactResolverRequest.java

                        @Nonnull Collection<? extends ArtifactCoordinates> coordinates,
                        @Nonnull List<RemoteRepository> repositories) {
                    super(session, trace);
                    this.coordinates = List.copyOf(requireNonNull(coordinates, "coordinates cannot be null"));
                    this.repositories = validate(repositories);
                }
    
                @Nonnull
                @Override
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 10 07:30:49 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  4. api/maven-api-xml/src/main/java/org/apache/maven/api/xml/ImmutableCollections.java

                        return 0;
                    }
                };
            }
        };
    
        static <E1, E2 extends E1> List<E1> copy(Collection<E2> collection) {
            return collection == null ? List.of() : List.copyOf(collection);
        }
    
        static <K, V> Map<K, V> copy(Map<K, V> map) {
            if (map == null) {
                return emptyMap();
            } else if (map instanceof AbstractImmutableMap) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Jul 07 11:47:42 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/ProtoSession.java

                        Path rootDirectory) {
                    this.userProperties = Map.copyOf(userProperties);
                    this.systemProperties = Map.copyOf(systemProperties);
                    Map<String, String> cp = new HashMap<>(systemProperties);
                    cp.putAll(userProperties);
                    this.effectiveProperties = Map.copyOf(cp);
                    this.startTime = requireNonNull(startTime);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Jul 03 14:18:26 GMT 2025
    - 7.5K bytes
    - Click Count (0)
  6. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/PrecedenceCoreExtensionSelector.java

            for (CoreExtension source : selectedExtensions.values()) {
                context.logger.debug("* " + source.getId() + ": " + formatLocation(source.getLocation("")));
            }
            return List.copyOf(selectedExtensions.values());
        }
    
        protected String formatLocation(InputLocation location) {
            return location.getSource().getLocation() + ":" + location.getLineNumber();
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Sep 29 15:32:43 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelBuilderRequest.java

                    this.profiles = profiles != null ? List.copyOf(profiles) : List.of();
                    this.activeProfileIds = activeProfileIds != null ? List.copyOf(activeProfileIds) : List.of();
                    this.inactiveProfileIds = inactiveProfileIds != null ? List.copyOf(inactiveProfileIds) : List.of();
                    this.systemProperties =
                            systemProperties != null ? Map.copyOf(systemProperties) : session.getSystemProperties();
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 10 07:30:49 GMT 2025
    - 16.3K bytes
    - Click Count (0)
  8. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/ParserRequest.java

                return this;
            }
    
            public ParserRequest build() {
                return new ParserRequestImpl(
                        command,
                        commandName,
                        List.copyOf(args),
                        lookup.lookupOptional(Logger.class).orElse(logger),
                        messageBuilderFactory,
                        lookup,
                        cwd,
                        mavenHome,
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Jun 07 06:22:47 GMT 2025
    - 15.9K bytes
    - Click Count (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/BaseParser.java

            loaded = readCoreExtensionsDescriptorFromFile(file, true);
            if (!loaded.isEmpty()) {
                result.add(new CoreExtensions(file, loaded));
            }
    
            return result.isEmpty() ? null : List.copyOf(result);
        }
    
        protected List<CoreExtension> readCoreExtensionsDescriptorFromFile(Path extensionsFile, boolean allowMetaVersions) {
            try {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 10 07:39:11 GMT 2025
    - 25.5K bytes
    - Click Count (0)
  10. impl/maven-core/src/test/java/org/apache/maven/project/RepositoryLeakageTest.java

                MavenProject child2Project = result2.getProject();
    
                // Capture repositories after building child2
                List<ArtifactRepository> repositoriesAfterChild2 = List.copyOf(sharedRequest.getRemoteRepositories());
    
                // Verify that child1 has its own repository
                boolean child1HasOwnRepo = child1Project.getRemoteArtifactRepositories().stream()
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Oct 16 06:12:36 GMT 2025
    - 9.3K bytes
    - Click Count (0)
Back to Top