Skip to content

Commit

Permalink
create marker file
Browse files Browse the repository at this point in the history
  • Loading branch information
YasuChiba committed Dec 31, 2021
1 parent 3c4a088 commit e299e25
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions colcon_ros_gradle/task/ament_gradle/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,12 @@ async def _build(self, args, env):

async def _install(self, args, env):
self.progress('install')

# Create Marker file
package_name = self.context.pkg.name
install_base = args.install_base
resource_index_dir = os.path.join("share", "ament_index", "resource_index", "packages")

marker_file_path = Path(os.path.join(install_base, resource_index_dir, package_name))
marker_file_path.parent.mkdir(parents=True, exist_ok=True)
marker_file_path.touch()

0 comments on commit e299e25

Please sign in to comment.