-
Notifications
You must be signed in to change notification settings - Fork 31
catkin_make_isolated failed to generate java source for message file #6
Comments
This is coming from the filename generated by the package object created with when you call:
you get
Ideally should have |
@adamantivm I've bugfixed, version bumped (0.3.2) and tagged this. Could you re-release it for kinetic? Thanks! |
sure think, thanks for the fix @stonier !
|
Aye, apologies....definitely a PR. I was actually going to push this release for you, but got to the blooming stage and discovered you must be using a different release repo somewhere. Anyway, thanks for following up :) |
I don't mind taking care of this. |
Ok, I had to manually send the PR for bloom, let's hope it's all OK. |
#1. reproduce steps
1.1 create a test message catkin package
mkdir -p ~/test/src/my_msgs/msg
1.2 build test package using catkin_make_isolated
cd ~/test && catkin_make_isolated
1.3 check generated java source for message
$ ls build_isolated/my_msgs/java/my_msgs/src/main/java/my_msgs
ls: cannot access build_isolated/my_msgs/java/my_msgs/src/main/java/my_msgs: No such file or directory
#2. the cause
By comparing to the build.gradle generated by catkin_make, I find that there is trailing "/." in "--package-path" path:
$ grep package-path build_isolated/my_msgs/java/my_msgs/build.gradle
args = new ArrayList<String>([generated_sources_directory, '--package-path=/home/xxx/test/src/my_msgs/.', 'my_msgs'])
After removing the trailing "/." in "--package-path" path in build.gradle, it could successfully generate the java source:
$ ls build_isolated/my_msgs/java/my_msgs/src/main/java/my_msgs
Test.java
#3. how to fix
Here is the change I made on genjava/src/genjava/gradle_project.py (just for your reference).
The text was updated successfully, but these errors were encountered: