Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for setComments (0.06 sec)

  1. compat/maven-embedder/src/test/java/org/apache/maven/cli/props/MavenPropertiesTest.java

            p1.update(p2);
    
            assertEquals(2, (Object) p1.size());
            Object o23 = p1.getComments("trees");
            assertEquals(List.of("#", "# List of trees", "#"), o23);
            Object o22 = p1.getProperty("trees");
            assertEquals("fir, oak, maple", o22);
            Object o21 = p1.getComments("fruits");
            assertEquals(List.of("#", "# List of good fruits", "#"), o21);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  2. compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenProperties.java

                List<String> comments = properties.getComments(key);
                List<String> value = properties.getRaw(key);
                if (v == null) {
                    this.put(key, comments, value);
                    modified = true;
                } else if (!v.equals(properties.get(key))) {
                    if (comments.isEmpty()) {
                        comments = this.getComments(key);
                    }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  3. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/ArtifactDescriptorReaderDelegate.java

                properties.put("license." + i + ".name", license.getName());
                properties.put("license." + i + ".url", license.getUrl());
                properties.put("license." + i + ".comments", license.getComments());
                properties.put("license." + i + ".distribution", license.getDistribution());
            }
    
            result.setProperties(properties);
    
            setArtifactProperties(result, model);
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top