Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for setToolchains (0.21 sec)

  1. compat/maven-toolchain-builder/src/test/java/org/apache/maven/toolchain/building/DefaultToolchainsBuilderTest.java

            assertEquals(1, result.getEffectiveToolchains().getToolchains().size());
            assertEquals(
                    "TYPE", result.getEffectiveToolchains().getToolchains().get(0).getType());
            assertEquals(
                    "user_value",
                    result.getEffectiveToolchains()
                            .getToolchains()
                            .get(0)
                            .getProvides()
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java

                for (ToolchainModel model : toolchains.getToolchains()) {
                    if (!groupedToolchains.containsKey(model.getType())) {
                        groupedToolchains.put(model.getType(), new ArrayList<>());
                    }
    
                    groupedToolchains.get(model.getType()).add(model);
                }
    
                request.setToolchains(groupedToolchains);
            }
            return request;
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/execution/MavenExecutionRequest.java

         * @return this request
         * @since 3.3.0
         */
        MavenExecutionRequest setToolchains(Map<String, List<ToolchainModel>> toolchains);
    
        /**
         *
         * @return all toolchains grouped by type, never {@code null}
         * @since 3.3.0
         */
        Map<String, List<ToolchainModel>> getToolchains();
    
        /**
         * @since 3.3.0
         * @deprecated use {@link #setRootDirectory(Path)} instead
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java

            return builderId;
        }
    
        @Override
        public Map<String, List<ToolchainModel>> getToolchains() {
            if (toolchains == null) {
                toolchains = new HashMap<>();
            }
            return toolchains;
        }
    
        @Override
        public MavenExecutionRequest setToolchains(Map<String, List<ToolchainModel>> toolchains) {
            this.toolchains = toolchains;
            return this;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  5. compat/maven-toolchain-builder/src/test/java/org/apache/maven/toolchain/merge/MavenToolchainMergerTest.java

                PersistedToolchains jdksExtra = read(jdksExtraIS);
                assertEquals(2, jdks.getToolchains().size());
    
                merger.merge(jdks, jdksExtra, TrackableBase.USER_LEVEL);
                assertEquals(4, jdks.getToolchains().size());
                assertEquals(2, jdksExtra.getToolchains().size());
            }
            try (InputStream jdksIS = MavenToolchainMergerTest.class.getResourceAsStream("toolchains-jdks.xml");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultToolchainManager.java

        }
    
        @Override
        public List<Toolchain> getToolchains(Session session, String type, Map<String, String> requirements)
                throws ToolchainManagerException {
            MavenSession s = InternalMavenSession.from(session).getMavenSession();
            List<org.apache.maven.toolchain.Toolchain> toolchains =
                    toolchainManagerPrivate.getToolchains(s, type, requirements);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top