Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for orElse (0.07 sec)

  1. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/forked/DefaultForkedMavenInvoker.java

            }
            if (mavenOptions.showVersionAndExit().orElse(false)) {
                cmdAndArguments.add("--version");
            }
            if (mavenOptions.showVersion().orElse(false)) {
                cmdAndArguments.add("--show-version");
            }
            if (mavenOptions.quiet().orElse(false)) {
                cmdAndArguments.add("--quiet");
            }
            if (mavenOptions.verbose().orElse(false)) {
                cmdAndArguments.add("--verbose");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/DefaultMavenInvoker.java

            request.setNoSnapshotUpdates(options.suppressSnapshotUpdates().orElse(false));
            request.setGoals(options.goals().orElse(List.of()));
            request.setReactorFailureBehavior(determineReactorFailureBehaviour(context));
            request.setRecursive(!options.nonRecursive().orElse(!request.isRecursive()));
            request.setOffline(options.offline().orElse(request.isOffline()));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

            if (invokerRequest.options().quiet().orElse(false)) {
                writer.accept(CLIReportingUtils.showVersionMinimal());
            } else if (invokerRequest.options().verbose().orElse(false)) {
                writer.accept(CLIReportingUtils.showVersion(
                        ProcessHandle.current().info().commandLine().orElse(null), describe(context.terminal)));
    
            } else {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 38K bytes
    - Viewed (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelProcessor.java

            Path pom = modelParsers.stream()
                    .map(m -> m.locate(projectDirectory)
                            .map(org.apache.maven.api.services.Source::getPath)
                            .orElse(null))
                    .filter(Objects::nonNull)
                    .findFirst()
                    .orElseGet(() -> modelLocator.locatePom(projectDirectory));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/goals/ConfiguredGoalSupport.java

            SecDispatcher.ValidationResponse response = secDispatcher.validateConfiguration();
            if (!response.isValid() || context.invokerRequest.options().verbose().orElse(false)) {
                dumpResponse(context, "", response);
            }
            return response.isValid();
        }
    
        protected void dumpResponse(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultPackagingRegistry.java

            // of a "project scope"
            LifecycleMapping lifecycleMapping =
                    lookup.lookupOptional(LifecycleMapping.class, id).orElse(null);
            if (lifecycleMapping == null) {
                return Optional.empty();
            }
            Type type = typeRegistry.lookup(id).orElse(null);
            if (type == null) {
                return Optional.empty();
            }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/BuildModelSourceTransformer.java

            Parent parent = model.getParent();
            if (parent != null) {
                String version = parent.getVersion();
                String path = Optional.ofNullable(parent.getRelativePath()).orElse("..");
                if (version == null && !path.isEmpty()) {
                    Optional<RelativeProject> resolvedParent = resolveRelativePath(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/DefaultEncryptInvoker.java

                context.terminal.writer().println("Goal canceled by user.");
                return CANCELED;
            } catch (Exception e) {
                if (context.invokerRequest.options().showErrors().orElse(false)) {
                    context.terminal.writer().println(e.getMessage());
                    e.printStackTrace(context.terminal.writer());
                } else {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/goals/Init.java

            context.addInHeader("");
    
            ConsolePrompt prompt = context.prompt;
            boolean force = context.invokerRequest.options().force().orElse(false);
            boolean yes = context.invokerRequest.options().yes().orElse(false);
    
            if (configExists() && !force) {
                context.terminal
                        .writer()
                        .println(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/Optional.java

      @CheckForNull
      public static <T> Optional<T> fromJavaUtil(@CheckForNull java.util.Optional<T> javaUtilOptional) {
        return (javaUtilOptional == null) ? null : fromNullable(javaUtilOptional.orElse(null));
      }
    
      /**
       * Returns the equivalent {@code java.util.Optional} value to the given {@code
       * com.google.common.base.Optional}, or {@code null} if the argument is null.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 15.4K bytes
    - Viewed (0)
Back to top