Skip to content

Commit

Permalink
Merge pull request rosjava#1 from mojin-robotics/test_travis
Browse files Browse the repository at this point in the history
fix travis
  • Loading branch information
fmessmer authored Jul 30, 2018
2 parents bd6818d + 62c4f7b commit 526b426
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ project(rosjava_bootstrap)

find_package(catkin REQUIRED rosjava_build_tools)

catkin_rosjava_setup(publish installDist)
catkin_rosjava_setup(publish install)

catkin_package()

##############################################################################
# Installation
##############################################################################

install(DIRECTORY ${CATKIN_DEVEL_PREFIX}/${CATKIN_GLOBAL_MAVEN_DESTINATION}/org/ros/rosjava_bootstrap/
DESTINATION ${CATKIN_GLOBAL_MAVEN_DESTINATION}/org/ros/rosjava_bootstrap)
install(DIRECTORY ${ROS_MAVEN_DEPLOYMENT_REPOSITORY}/org/ros/rosjava_bootstrap
DESTINATION ${CATKIN_GLOBAL_MAVEN_DESTINATION}/org/ros)
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,27 @@ public void generate(File outputDirectory, Collection<String> packages,
for (File directory : packagePath) {
topicDefinitionFileProvider.addDirectory(directory);
serviceDefinitionFileProvider.addDirectory(directory);

//ugly hack for action definitions
String dir = directory.getAbsolutePath();
String actionDir = dir + "/action";
File actionFile = new File(actionDir);
if(actionFile.exists()) {
int idx = dir.indexOf("src");
if(idx >= 0){
String subDir = dir.substring(idx);
dir = dir.replace(subDir,"devel/share/");
String[] splits = directory.getAbsolutePath().split("/");
if(splits.length >0){
dir += splits[splits.length-1];
File newFileDir = new File(dir);
if(newFileDir.exists()){
topicDefinitionFileProvider.addDirectory(newFileDir);
}
}
}
}

}
topicDefinitionFileProvider.update();
serviceDefinitionFileProvider.update();
Expand Down

0 comments on commit 526b426

Please sign in to comment.