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

Method parse

src/packagedcode/maven.py:312–322  ·  view source on GitHub ↗

Yield PackageData from a pom.properties file (which is typically side- by-side with its pom file.)

(cls, location, package_only=False)

Source from the content-addressed store, hash-verified

310
311 @classmethod
312 def parse(cls, location, package_only=False):
313 """
314 Yield PackageData from a pom.properties file (which is typically side-
315 by-side with its pom file.)
316 """
317 with open(location) as props:
318 properties = javaproperties.load(props) or {}
319 if TRACE:
320 logger.debug(f'MavenPomPropertiesHandler.parse: properties: {properties!r}')
321 if properties:
322 yield from cls.parse_pom_properties(properties=properties, package_only=package_only)
323
324 @classmethod
325 def parse_pom_properties(cls, properties, package_only=False):

Callers

nothing calls this directly

Calls 3

parse_pom_propertiesMethod · 0.80
loadMethod · 0.45
debugMethod · 0.45

Tested by

no test coverage detected