Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for activatedProfiles (0.54 sec)

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

        public Optional<Boolean> updateSnapshots() {
            return returnFirstPresentOrEmpty(MavenOptions::updateSnapshots);
        }
    
        @Override
        public Optional<List<String>> activatedProfiles() {
            return collectListIfPresentOrEmpty(MavenOptions::activatedProfiles);
        }
    
        @Override
        public Optional<Boolean> suppressSnapshotUpdates() {
            return returnFirstPresentOrEmpty(MavenOptions::suppressSnapshotUpdates);
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/forked/DefaultForkedMavenInvoker.java

                cmdAndArguments.add("--update-snapshots");
            }
            if (mavenOptions.activatedProfiles().isPresent()) {
                cmdAndArguments.add("--activate-profiles");
                cmdAndArguments.add(
                        String.join(",", mavenOptions.activatedProfiles().get()));
            }
            if (mavenOptions.suppressSnapshotUpdates().orElse(false)) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/DefaultMavenInvoker.java

            MavenOptions mavenOptions = context.invokerRequest.options();
            if (mavenOptions.activatedProfiles().isPresent()
                    && !mavenOptions.activatedProfiles().get().isEmpty()) {
                List<String> optionValues = mavenOptions.activatedProfiles().get();
                for (final String optionValue : optionValues) {
                    for (String token : optionValue.split(",")) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/CommonsCliMavenOptions.java

            }
            return Optional.empty();
        }
    
        @Override
        public Optional<List<String>> activatedProfiles() {
            if (commandLine.hasOption(CLIManager.ACTIVATE_PROFILES)) {
                return Optional.of(Arrays.asList(commandLine.getOptionValues(CLIManager.ACTIVATE_PROFILES)));
            }
            return Optional.empty();
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16K bytes
    - Viewed (0)
  5. compat/maven-embedder/src/main/java/org/apache/maven/cli/CLIManager.java

        public static final char SHOW_VERSION = 'V';
    
        public static final char NON_RECURSIVE = 'N';
    
        public static final char UPDATE_SNAPSHOTS = 'U';
    
        public static final char ACTIVATE_PROFILES = 'P';
    
        public static final String SUPPRESS_SNAPSHOT_UPDATES = "nsu";
    
        public static final char CHECKSUM_FAILURE_POLICY = 'C';
    
        public static final char CHECKSUM_WARNING_POLICY = 'c';
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  6. compat/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java

            final CommandLineParser parser = new DefaultParser();
    
            final Options options = new Options();
            options.addOption(Option.builder(Character.toString(CLIManager.ACTIVATE_PROFILES))
                    .hasArg()
                    .build());
    
            ProfileActivation activation;
    
            activation = new ProfileActivation();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  7. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

        static void performProfileActivation(final CommandLine commandLine, final ProfileActivation profileActivation) {
            if (commandLine.hasOption(CLIManager.ACTIVATE_PROFILES)) {
                final String[] optionValues = commandLine.getOptionValues(CLIManager.ACTIVATE_PROFILES);
    
                if (optionValues == null || optionValues.length == 0) {
                    return;
                }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 76.8K bytes
    - Viewed (0)
Back to top