Skip to content

Commit

Permalink
Pass package exports to template in pkg create api (#619) (#628)
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Fanselow <[email protected]>
  • Loading branch information
tim-fan authored May 27, 2021
1 parent edbc160 commit 21b988c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ros2pkg/ros2pkg/api/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def create_package_environment(package, destination_directory):
'buildtool_dependencies': package.buildtool_depends,
'dependencies': package.build_depends,
'test_dependencies': package.test_depends,
'build_type': package.get_build_type(),
'exports': package.exports,
}
_create_template_file(
'package_environment',
Expand Down
6 changes: 5 additions & 1 deletion ros2pkg/ros2pkg/resource/package_environment/package.xml.em
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@

@[end if]@
<export>
<build_type>@build_type</build_type>
@[if exports]@
@[ for export in exports]@
<@export.tagname>@export.content</@export.tagname>
@[ end for]@
@[end if]@
</export>
</package>

0 comments on commit 21b988c

Please sign in to comment.