Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for shouldSaveModifications (0.27 sec)

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

            // Perform the upgrade logic
            int result = doUpgrade(context, targetModel, pomMap);
    
            // Save modifications if this is an apply goal
            if (shouldSaveModifications() && result == 0) {
                saveModifications(context, pomMap);
            }
    
            return result;
        }
    
        /**
         * Performs the upgrade logic using the strategy pattern.
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  2. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoalTest.java

            TestableAbstractUpgradeGoal(StrategyOrchestrator orchestrator) {
                super(orchestrator);
            }
    
            @Override
            protected boolean shouldSaveModifications() {
                return true; // Enable actual file operations for tests
            }
    
            // Test helper methods to expose protected functionality
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 13.7K bytes
    - Viewed (0)
Back to top