Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getUserProperty (0.13 sec)

  1. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/BuildModelSourceTransformerTest.java

            Model initial = new Model(org.apache.maven.api.model.Model.newBuilder()
                    .version("${revision}-${sha1}")
                    .build());
            Mockito.when(context.getUserProperty("revision")).thenReturn("therev");
            Mockito.when(context.getUserProperty("sha1")).thenReturn("thesha");
            Model expected = new Model(org.apache.maven.api.model.Model.newBuilder()
                    .version("therev-thesha")
                    .build());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/BuildModelSourceTransformer.java

            if (version != null) {
                for (String key : Arrays.asList("changelist", "revision", "sha1")) {
                    String val = context.getUserProperty(key);
                    if (val != null) {
                        version = version.replace("${" + key + "}", val);
                    }
                }
            }
            return version;
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/TransformerContext.java

        /**
         * Key to get the TransformerContext from the SessionData
         */
        Object KEY = TransformerContext.class;
    
        /**
         * Get the value of the Maven user property.
         */
        String getUserProperty(String key);
    
        /**
         * Get the model based on the path when resolving the parent based on relativePath.
         *
         * @param from    the requiring model
         * @param pomFile the path to the pomFile
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultTransformerContext.java

                }
                return model;
            }
        }
    
        DefaultTransformerContext(ModelLocator modelLocator) {
            this.modelLocator = modelLocator;
        }
    
        @Override
        public String getUserProperty(String key) {
            return userProperties.get(key);
        }
    
        @Override
        public Model getRawModel(Path from, Path p) {
            return Holder.deref(modelByPath.get(p));
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultTransformerContextBuilder.java

                @Override
                public Path locate(Path path) {
                    return context.locate(path);
                }
    
                @Override
                public String getUserProperty(String key) {
                    return context.userProperties.computeIfAbsent(
                            key, k -> request.getUserProperties().getProperty(key));
                }
    
                @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top