- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for UpgradeContext (0.08 sec)
-
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/UpgradeContext.java
import org.jline.utils.AttributedStyle; import static eu.maveniverse.domtrip.maven.MavenPomElements.Indentation; @SuppressWarnings("VisibilityModifier") public class UpgradeContext extends LookupContext { public UpgradeContext(InvokerRequest invokerRequest, UpgradeOptions upgradeOptions) { super(invokerRequest, true, upgradeOptions); } public Map<String, Goal> goals;Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 4.7K bytes - Viewed (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/TestUtils.java
* @return a mock UpgradeContext */ public static UpgradeContext createMockContext(Path workingDirectory) { return createMockContext(workingDirectory, createDefaultOptions()); } /** * Creates a mock UpgradeContext with the specified options. * * @param options the upgrade options to use * @return a mock UpgradeContext */Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 8.9K bytes - Viewed (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/UpgradeContextTest.java
/** * Unit tests for the {@link UpgradeContext} class. * Tests console output formatting and Unicode icon fallback behavior. */ @DisplayName("UpgradeContext") class UpgradeContextTest { @Test @DisplayName("should create context successfully") void shouldCreateContextSuccessfully() { // Use existing test utilities to create a contextRegistered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Jul 15 09:35:08 UTC 2025 - 3.3K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeStrategy.java
*/ protected abstract UpgradeResult doApply(UpgradeContext context, Map<Path, Document> pomMap); /** * Gets the upgrade options from the context. * * @param context the upgrade context * @return the upgrade options */ protected final UpgradeOptions getOptions(UpgradeContext context) { return context.options(); } /**Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 7.1K bytes - Viewed (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/UpgradeWorkflowIntegrationTest.java
* under the License. */ package org.apache.maven.cling.invoker.mvnup.goals; import java.nio.file.Files; import java.nio.file.Path; import java.util.List; import org.apache.maven.cling.invoker.mvnup.UpgradeContext; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.io.TempDir;
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 9.3K bytes - Viewed (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/HelpTest.java
private Help help; @BeforeEach void setUp() { help = new Help(); } private UpgradeContext createMockContext() { return TestUtils.createMockContext(); } @Test void testHelpExecuteReturnsZero() throws Exception { UpgradeContext context = createMockContext(); int result = help.execute(context);Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Aug 29 12:46:51 UTC 2025 - 3.4K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/Help.java
import org.apache.maven.api.di.Singleton; import org.apache.maven.cling.invoker.mvnup.Goal; import org.apache.maven.cling.invoker.mvnup.UpgradeContext; /** * The "help" goal implementation. */ @Named("help") @Singleton public class Help implements Goal { @Override public int execute(UpgradeContext context) throws Exception { context.info("Maven Upgrade Tool - Help"); context.println();
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Aug 29 12:46:51 UTC 2025 - 2.7K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/UpgradeInvoker.java
super(protoLookup, contextConsumer); } @Override protected UpgradeContext createContext(InvokerRequest invokerRequest) { return new UpgradeContext( invokerRequest, (UpgradeOptions) invokerRequest.options().orElse(null)); } @Override protected void lookup(UpgradeContext context) throws Exception { if (context.goals == null) { super.lookup(context);
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jun 11 13:14:09 UTC 2025 - 4.4K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/StrategyOrchestrator.java
import org.apache.maven.api.cli.mvnup.UpgradeOptions; import org.apache.maven.api.di.Inject; import org.apache.maven.api.di.Named; import org.apache.maven.api.di.Singleton; import org.apache.maven.cling.invoker.mvnup.UpgradeContext; /** * domtrip-based orchestrator for executing different upgrade strategies. * * <p>This class provides the same functionality as StrategyOrchestrator but works
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 7K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/UpgradeStrategy.java
* @return the result of the upgrade operation */ UpgradeResult apply(UpgradeContext context, Map<Path, Document> pomMap); /** * Checks if this strategy is applicable given the current options. * * @param context the upgrade context * @return true if this strategy should be applied */ boolean isApplicable(UpgradeContext context); /**Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 3.4K bytes - Viewed (0)