Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for setProperties (0.19 sec)

  1. maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultPluginDependenciesResolver.java

                String requiredMavenVersion = (String) result.getProperties().get("prerequisites.maven");
                if (requiredMavenVersion != null) {
                    Map<String, String> props = new LinkedHashMap<>(pluginArtifact.getProperties());
                    props.put("requiredMavenVersion", requiredMavenVersion);
                    pluginArtifact = pluginArtifact.setProperties(props);
                }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 10K bytes
    - Viewed (0)
  2. maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorTest.java

            String checkValue = "value";
    
            Properties properties = new Properties();
            properties.setProperty(key, checkValue);
    
            Model model = new Model();
            model.setProperties(properties);
    
            MavenProject project = new MavenProject(model);
    
            ExpressionEvaluator ee = createExpressionEvaluator(project, null, new Properties());
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Tue Dec 05 08:11:33 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  3. maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java

                    // a parameter.
    
                    value = properties.getProperty(expression);
                }
    
                if ((value == null) && ((project != null) && (project.getProperties() != null))) {
                    value = project.getProperties().getProperty(expression);
                }
            }
    
            if (value instanceof String) {
                // TODO without #, this could just be an evaluate call...
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Tue Oct 17 17:55:08 GMT 2023
    - 16.7K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelInterpolator.java

        }
    
        protected List<ValueSource> createValueSources(
                Model model, Path projectDir, ModelBuilderRequest request, ModelProblemCollector problems) {
            Map<String, String> modelProperties = model.getProperties();
    
            ValueSource projectPrefixValueSource;
            ValueSource prefixlessObjectBasedValueSource;
            if (request.getValidationLevel() >= ModelBuilderRequest.VALIDATION_LEVEL_MAVEN_4_0) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 20K bytes
    - Viewed (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/Session.java

        Map<String, String> getUserProperties();
    
        /**
         * Returns immutable system properties to use for interpolation. The system properties are collected from the
         * runtime environment such as {@link System#getProperties()} and environment variables
         * (prefixed with {@code env.}).
         *
         * @return the system properties, never {@code null}
         */
        @Nonnull
        Map<String, String> getSystemProperties();
    
        /**
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 30.2K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/execution/MavenSession.java

        }
    
        /**
         * Gets the system properties to use for interpolation and profile activation. The system properties are collected
         * from the runtime environment like {@link System#getProperties()} and environment variables.
         *
         * @return The system properties, never {@code null}.
         */
        public Properties getSystemProperties() {
            return request.getSystemProperties();
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 16.6K bytes
    - Viewed (0)
  7. maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorV4Test.java

            String key = "m2.name";
            String checkValue = "value";
    
            MavenProject project = createDefaultProject();
            project.getModel().getProperties().setProperty(key, checkValue);
    
            ExpressionEvaluator ee = createExpressionEvaluator(project, new Properties());
    
            Object value = ee.evaluate("${" + key + "}");
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 19.2K bytes
    - Viewed (0)
  8. maven-api-impl/src/main/java/org/apache/maven/internal/impl/SettingsUtilsV4.java

                }
    
                activation.packaging(modelActivation.getPackaging());
    
                profile.activation(activation.build());
            }
    
            profile.properties(modelProfile.getProperties().entrySet().stream()
                    .collect(Collectors.toMap(
                            e -> e.getKey().toString(), e -> e.getValue().toString())));
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  9. maven-api-impl/src/test/java/org/apache/maven/internal/impl/standalone/ApiRunner.java

                HashMap<String, String> result = new HashMap<>(getSystemProperties());
                if (project != null) {
                    result.putAll(project.getModel().getProperties());
                }
                result.putAll(getUserProperties());
                return result;
            }
    
            @Override
            public Version getMavenVersion() {
                return null;
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  10. maven-compat/src/main/java/org/apache/maven/project/interpolation/AbstractStringBasedModelInterpolator.java

                final Model model, final File projectDir, final ProjectBuilderConfiguration config) {
            String timestampFormat = DEFAULT_BUILD_TIMESTAMP_FORMAT;
    
            Properties modelProperties = model.getProperties();
            if (modelProperties != null) {
                timestampFormat = modelProperties.getProperty(BUILD_TIMESTAMP_FORMAT_PROPERTY, timestampFormat);
            }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 13.5K bytes
    - Viewed (0)
Back to top