Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for hasOption (0.09 sec)

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

        @Override
        public Optional<String> alternatePomFile() {
            if (commandLine.hasOption(CLIManager.ALTERNATE_POM_FILE)) {
                return Optional.of(commandLine.getOptionValue(CLIManager.ALTERNATE_POM_FILE));
            }
            return Optional.empty();
        }
    
        @Override
        public Optional<Boolean> offline() {
            if (commandLine.hasOption(CLIManager.OFFLINE)) {
                return Optional.of(Boolean.TRUE);
            }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16K bytes
    - Viewed (0)
  2. compat/maven-embedder/src/main/java/org/apache/maven/cli/configuration/SettingsXmlConfigurationProcessor.java

            String workingDirectory = cliRequest.getWorkingDirectory();
            MavenExecutionRequest request = cliRequest.getRequest();
    
            File userSettingsFile;
    
            if (commandLine.hasOption(CLIManager.ALTERNATE_USER_SETTINGS)) {
                userSettingsFile = new File(commandLine.getOptionValue(CLIManager.ALTERNATE_USER_SETTINGS));
                userSettingsFile = resolveFile(userSettingsFile, workingDirectory);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CommonsCliOptions.java

            if (commandLine.hasOption(CLIManager.FAIL_ON_SEVERITY)) {
                return Optional.of(commandLine.getOptionValue(CLIManager.FAIL_ON_SEVERITY));
            }
            return Optional.empty();
        }
    
        @Override
        public Optional<Boolean> nonInteractive() {
            if (commandLine.hasOption(CLIManager.NON_INTERACTIVE) || commandLine.hasOption(CLIManager.BATCH_MODE)) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  4. compat/maven-embedder/src/main/java/org/apache/maven/cli/CLIManager.java

            CommandLine commandLine = parser.parse(options, cleanArgs);
            // to trigger deprecation handler, so we can report deprecation BEFORE we actually use options
            options.getOptions().forEach(commandLine::hasOption);
            return commandLine;
        }
    
        public Set<Option> getUsedDeprecatedOptions() {
            return usedDeprecatedOptions;
        }
    
        public void displayHelp(PrintStream stdout) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17.6K bytes
    - Viewed (0)
Back to top