Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for observeExecution (0.05 sec)

  1. impl/maven-core/src/test/java/org/apache/maven/lifecycle/internal/PhaseRecorderTest.java

            final List<MojoExecution> executions = plan.getMojoExecutions();
    
            final MojoExecution mojoExecution1 = executions.get(0);
            final MojoExecution mojoExecution2 = executions.get(1);
            phaseRecorder.observeExecution(mojoExecution1);
    
            assertTrue(ProjectDependencyGraphStub.A.hasLifecyclePhase(mojoExecution1.getLifecyclePhase()));
            assertFalse(ProjectDependencyGraphStub.A.hasLifecyclePhase(mojoExecution2.getLifecyclePhase()));
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/PhaseRecorder.java

        private String lastLifecyclePhase;
    
        private final MavenProject project;
    
        public PhaseRecorder(MavenProject project) {
            this.project = project;
        }
    
        public void observeExecution(MojoExecution mojoExecution) {
            String lifecyclePhase = mojoExecution.getLifecyclePhase();
    
            if (lifecyclePhase != null) {
                PhaseId phaseId = PhaseId.of(lifecyclePhase);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoExecutor.java

                DependencyContext dependencyContext,
                PhaseRecorder phaseRecorder)
                throws LifecycleExecutionException {
            execute(session, mojoExecution, dependencyContext);
            phaseRecorder.observeExecution(mojoExecution);
        }
    
        private void execute(MavenSession session, MojoExecution mojoExecution, DependencyContext dependencyContext)
                throws LifecycleExecutionException {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Jun 12 14:55:55 UTC 2025
    - 21K bytes
    - Viewed (0)
Back to top