Skip to content
This repository was archived by the owner on Aug 23, 2018. It is now read-only.

Commit 190c625

Browse files
author
Erwan Le Huitouze
committed
Update JAVAPATH generation
1 parent f190947 commit 190c625

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

ament_build_type_gradle/ament_build_type_gradle/__init__.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,11 @@ def on_build(self, context):
9898
# expand environment hook for JAVAPATH
9999
ext = '.sh.in' if not IS_WINDOWS else '.bat.in'
100100
template_path = self.get_environment_hook_template_path('javapath' + ext)
101-
javapath = os.path.join('$AMENT_CURRENT_PREFIX', 'share', context.package_manifest.name, 'java', '*') + ':' \
102-
+ os.path.join('$AMENT_CURRENT_PREFIX', 'lib', 'java', '*')
101+
javapath = os.path.join('$AMENT_CURRENT_PREFIX', 'share', context.package_manifest.name, 'java', '*')
102+
javapath_depends = os.path.join('$AMENT_CURRENT_PREFIX', 'lib', 'java', '*')
103103
content = configure_file(template_path, {
104-
'JAVAPATH': javapath
104+
'JAVAPATH': javapath,
105+
'JAVAPATH_DEPENDS': javapath_depends
105106
})
106107
javapath_environment_hook = os.path.join(
107108
environment_hooks_path, os.path.basename(template_path)[:-3])
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# generated from ament_package/template/environment_hook/javapath.sh.in
22

33
ament_prepend_unique_value JAVAPATH "@JAVAPATH@"
4+
ament_prepend_unique_value JAVAPATH "@JAVAPATH_DEPENDS@"

0 commit comments

Comments
 (0)