MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / _extra_properties

Method _extra_properties

src/packagedcode/maven.py:495–516  ·  view source on GitHub ↗

Return a mapping of extra properties

(self)

Source from the content-addressed store, hash-verified

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):

Callers 1

resolveMethod · 0.95

Calls 1

build_property_variantsFunction · 0.85

Tested by

no test coverage detected