Skip to content

Commit

Permalink
Add docstring for Maven assemble
Browse files Browse the repository at this point in the history
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
  • Loading branch information
AyanSinhaMahapatra committed Jul 13, 2023
1 parent 8d8cbe3 commit dc8f545
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/packagedcode/maven.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ class MavenBasePackageHandler(models.DatafileHandler):
@classmethod
def assemble(cls, package_data, resource, codebase, package_adder=models.add_to_package):
"""
Assembles from codebases where both a pom.xml and a MANIFEST.MF is present,
otherwise uses the default assemble function and `assign_package_to_resources`
function from respective DatafileHandlers.
"""
if codebase.has_single_resource:
yield from models.DatafileHandler.assemble(package_data, resource, codebase)
Expand Down

0 comments on commit dc8f545

Please sign in to comment.