Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for commandLine (0.11 sec)

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

        public Optional<String> threads() {
            if (commandLine.hasOption(CLIManager.THREADS)) {
                return Optional.of(commandLine.getOptionValue(CLIManager.THREADS));
            }
            return Optional.empty();
        }
    
        @Override
        public Optional<String> builder() {
            if (commandLine.hasOption(CLIManager.BUILDER)) {
                return Optional.of(commandLine.getOptionValue(CLIManager.BUILDER));
            }
    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

            CommandLine commandLine = cliRequest.getCommandLine();
            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));
    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. compat/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java

            assertEquals("multithreaded", request.commandLine.getOptionValue(CLIManager.BUILDER));
            assertEquals("8", request.commandLine.getOptionValue(CLIManager.THREADS));
    
            // override from command line
            request = new CliRequest(new String[] {"--builder", "foobar"}, null);
            cli.cli(request);
            assertEquals("foobar", request.commandLine.getOptionValue("builder"));
        }
    
        @Test
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  4. compat/maven-embedder/src/main/java/org/apache/maven/cli/CliRequest.java

    import java.util.Properties;
    
    import org.apache.commons.cli.CommandLine;
    import org.apache.maven.execution.DefaultMavenExecutionRequest;
    import org.apache.maven.execution.MavenExecutionRequest;
    import org.codehaus.plexus.classworlds.ClassWorld;
    
    /**
     * CliRequest
     */
    public class CliRequest {
        String[] args;
    
        CommandLine commandLine;
    
        ClassWorld classWorld;
    
        String workingDirectory;
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CommonsCliOptions.java

        protected final CLIManager cliManager;
        protected final CommandLine commandLine;
    
        protected CommonsCliOptions(String source, CLIManager cliManager, CommandLine commandLine) {
            this.source = requireNonNull(source);
            this.cliManager = requireNonNull(cliManager);
            this.commandLine = requireNonNull(commandLine);
        }
    
        @Override
        public String source() {
            return source;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  6. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

            // LOG LEVEL
            CommandLine commandLine = cliRequest.commandLine;
            cliRequest.verbose = commandLine.hasOption(CLIManager.VERBOSE) || commandLine.hasOption(CLIManager.DEBUG);
            cliRequest.quiet = !cliRequest.verbose && commandLine.hasOption(CLIManager.QUIET);
            cliRequest.showErrors = cliRequest.verbose || commandLine.hasOption(CLIManager.ERRORS);
    
            // LOG COLOR
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 76.8K bytes
    - Viewed (0)
  7. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/CommonsCliEncryptOptions.java

            return new CommonsCliEncryptOptions(Options.SOURCE_CLI, cliManager, cliManager.parse(args));
        }
    
        protected CommonsCliEncryptOptions(String source, CLIManager cliManager, CommandLine commandLine) {
            super(source, cliManager, commandLine);
        }
    
        private static CommonsCliEncryptOptions interpolate(
                CommonsCliEncryptOptions options, Collection<Map<String, String>> properties) {
            try {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  8. compat/maven-embedder/src/main/java/org/apache/maven/cli/CLIReportingUtils.java

                    .append("\", family: \"")
                    .append(Os.OS_FAMILY)
                    .append('\"');
            // Add process information using modern Java API
            if (commandLine != null) {
                version.append(ls).append("Command line: ").append(commandLine);
            }
            if (terminal != null) {
                version.append(ls).append("Terminal: ").append(terminal);
            }
            return version.toString();
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  9. compat/maven-embedder/src/main/java/org/apache/maven/cli/CLIManager.java

        }
    
        public CommandLine parse(String[] args) throws ParseException {
            // We need to eat any quotes surrounding arguments...
            String[] cleanArgs = CleanArgument.cleanArgs(args);
    
            DefaultParser parser = DefaultParser.builder()
                    .setDeprecatedHandler(usedDeprecatedOptions::add)
                    .build();
    
            CommandLine commandLine = parser.parse(options, cleanArgs);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  10. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/ModelVersionProcessor.java

    import java.util.Properties;
    
    import org.apache.maven.model.building.ModelBuildingRequest;
    
    /**
     * Allows a fixed set of properties that are valid inside a version and that could be overwritten for example on the
     * commandline
     *
     * @deprecated use {@link org.apache.maven.api.services.ModelBuilder} instead
     */
    @Deprecated(since = "4.0.0")
    public interface ModelVersionProcessor {
    
        /**
         * @param property the property to check
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top