Bug 911277
| Summary: | [RFE] javapackages-tools: Add pom_xpath_replace | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Stanislav Ochotnicky <sochotni> |
| Component: | javapackages-tools | Assignee: | Mikolaj Izdebski <mizdebsk> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | java-sig-commits, mizdebsk, msrb, sochotni, tradej |
| Target Milestone: | --- | Keywords: | Upstream |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 0.12.0-1 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-02-15 14:35:53 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Implemented in upstream. I believe that this bug is fixed in javapackages-tools-0.12.0-1, which is available in Fedora Rawhide. I am closing the bug now, thank you for reporting it. A summary of changes is included below. * Fri Feb 15 2013 Mikolaj Izdebski <mizdebsk> - 0.12.0-1 - Update to upstream version 0.12.0 - Implement new pom macros: xpath_replace and xpath_set - Remove Support-local-depmaps.patch (accepted upstream) |
Sometimes it's useful to modify pom.xml files by replacing parts of it, for example like this: # Replace plexus-maven-plugin with plexus-component-metadata find -name 'pom.xml' -exec sed \ -i 's/<artifactId>plexus-maven-plugin<\/artifactId>/<artifactId>plexus-component-metadata<\/artifactId>/' '{}' ';' Should be possible with something like: %pom_xpath_replace pom:artifactId plexus-component-metadata Currently this is partially possible with pom_xpath_remove & pom_xpath_inject duo but a dedicated replacement macro would be able to simplify certain operations