Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 41 for or_else (0.08 sec)

  1. maven-core/src/test/java/org/apache/maven/project/PomConstructionTest.java

                    .findFirst()
                    .orElse(null);
            assertNotNull(plugin, "Unable to find plugin with artifactId: " + artifactId);
            List<PluginExecution> pluginExecutions = plugin.getExecutions();
            PluginExecution pluginExecution = pluginExecutions.stream()
                    .filter(pe -> pe.getId().equals(expectedId))
                    .findFirst()
                    .orElse(null);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 93.2K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/project/collector/MultiModuleCollectionStrategy.java

                                .map(exc -> ((PluginResolutionException) exc.getCause()).getPlugin())
                                .anyMatch(isPluginPartOfRequestScope);
                    })
                    .orElse(false);
        }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Sep 22 09:07:17 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  3. maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

                            .flatMap(r -> r.getProblems().stream())
                            .filter(p -> p.getException() instanceof CycleDetectedException)
                            .findAny()
                            .orElse(null);
                    if (cycle != null) {
                        throw new RuntimeException(new ProjectCycleException(
                                "The projects in the reactor contain a cyclic reference: " + cycle.getMessage(),
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon May 13 16:34:29 UTC 2024
    - 57.1K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/project/ProjectSorter.java

        // weirdness.
        public MavenProject getTopLevelProject() {
            return sortedProjects.stream()
                    .filter(MavenProject::isExecutionRoot)
                    .findFirst()
                    .orElse(null);
        }
    
        public List<MavenProject> getSortedProjects() {
            return sortedProjects;
        }
    
        public boolean hasMultipleProjects() {
            return sortedProjects.size() > 1;
        }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Sep 22 06:02:04 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  5. maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/ReflectionValueExtractor.java

                        // could not parse expression
                        return null;
                }
            }
    
            if (value instanceof Optional) {
                value = ((Optional<?>) value).orElse(null);
            }
            return value;
        }
    
        private static Object getMappedValue(
                final String expression, final int from, final int to, final Object value, final String key)
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Dec 05 08:11:33 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/execution/MavenSession.java

                this.topLevelProject = projects.stream()
                        .filter(project -> project.isExecutionRoot())
                        .findFirst()
                        .orElse(first);
            } else {
                this.currentProject = new ThreadLocal<>();
                this.topLevelProject = null;
            }
            this.projects = projects;
        }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Mar 25 10:50:01 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/ReactorReader.java

                    .filter(artifact ->
                            Objects.equals(requestedRepositoryConflictId, ArtifactIdUtils.toVersionlessId(artifact)))
                    .findFirst()
                    .orElse(null);
        }
    
        /**
         * Determines whether the specified artifact refers to test classes.
         *
         * @param artifact The artifact to check, must not be {@code null}.
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu May 02 16:33:18 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  8. maven-api-impl/src/main/java/org/apache/maven/internal/impl/AbstractSession.java

        }
    
        @Override
        public org.eclipse.aether.artifact.Artifact toArtifact(Artifact artifact) {
            Path path = getService(ArtifactManager.class).getPath(artifact).orElse(null);
            if (artifact instanceof DefaultArtifact) {
                org.eclipse.aether.artifact.Artifact a = ((DefaultArtifact) artifact).getArtifact();
                if (Objects.equals(path, a.getPath())) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelValidator.java

                String location = f.next().location;
                ActivationFrame parent = f.next();
    
                return parent.parent.map(p -> p.getLocation(location)).orElse(null);
            };
            final UnaryOperator<String> transformer = s -> {
                if (hasProjectExpression(s)) {
                    String path = pathSupplier.get();
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Jun 10 11:04:53 UTC 2024
    - 73.9K bytes
    - Viewed (0)
  10. maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java

                String location = f.next().location;
                ActivationFrame parent = f.next();
    
                return parent.parent.map(p -> p.getLocation(location)).orElse(null);
            };
            final UnaryOperator<String> transformer = s -> {
                if (hasProjectExpression(s)) {
                    String path = pathSupplier.get();
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Sat May 18 14:09:22 UTC 2024
    - 76K bytes
    - Viewed (0)
Back to top