Return a mapping of extra properties
(self)
| 493 | self._properties = None |
| 494 | |
| 495 | def _extra_properties(self): |
| 496 | """ |
| 497 | Return a mapping of extra properties |
| 498 | """ |
| 499 | properties = {} |
| 500 | for name in build_property_variants('classifier'): |
| 501 | properties[name] = self.classifier |
| 502 | |
| 503 | for name in build_property_variants('packaging'): |
| 504 | properties[name] = self.packaging |
| 505 | |
| 506 | for name in build_property_variants('organization.name'): |
| 507 | properties[name] = self.organization_name |
| 508 | |
| 509 | for name in build_property_variants('organization.url'): |
| 510 | properties[name] = self.organization_url |
| 511 | |
| 512 | # TODO: collect props defined in a properties file side-by-side the pom file |
| 513 | # see https://maven.apache.org/shared/maven-archiver/#class_archive |
| 514 | # this applies to POMs stored inside a JAR or in a plain directory |
| 515 | |
| 516 | return properties |
| 517 | |
| 518 | @classmethod |
| 519 | def _replace_props(cls, text, properties): |
no test coverage detected