Skip to content
This repository has been archived by the owner on Jan 14, 2023. It is now read-only.

update for rosjava_bootstrap #14

Open
wants to merge 1 commit into
base: kinetic
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ This doesn't work exactly though because it doesn't pull in the full classpath.
def generateSourcesTask = p.tasks.create("generateSources", JavaExec)
generateSourcesTask.description = "Generate sources for " + pkg.name
generateSourcesTask.outputs.dir(p.file(generatedSourcesDir))
/* generateSourcesTask.args = new ArrayList<String>([generatedSourcesDir, pkg.name]) */
generateSourcesTask.args = new ArrayList<String>([generatedSourcesDir, '--package-path=' + pkg.directory, pkg.name])
generateSourcesTask.args = new ArrayList<String>(['--output-path', generatedSourcesDir, '--package-path', pkg.directory, '--package-names', pkg.name])
generateSourcesTask.classpath = p.configurations.runtime
generateSourcesTask.main = 'org.ros.internal.message.GenerateInterfaces'
p.tasks.compileJava.source generateSourcesTask.outputs.files
Expand Down
2 changes: 1 addition & 1 deletion package.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<package>
<name>genjava</name>
<version>0.3.3</version>
<version>0.3.4</version>
<description>
Java ROS message and service generators.
</description>
Expand Down
3 changes: 2 additions & 1 deletion src/genjava/templates/genjava_project/build.gradle.in
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ ext {
task generateSources (type: JavaExec) {
description = "Generate sources for %(project_name)s"
outputs.dir(file(generated_sources_directory))
args = new ArrayList<String>([generated_sources_directory, '--package-path=%(pkg_directory)s', '%(project_name)s'])
args = new ArrayList<String>(['--output-path', generated_sources_directory, '--package-path' ,'%(pkg_directory)s', '--package-names' ,'%(project_name)s'])
classpath = configurations.runtime
main = 'org.ros.internal.message.GenerateInterfaces'
tasks.compileJava.source outputs.files
Expand All @@ -61,6 +61,7 @@ dependencies {
}

jar {
from sourceSets.main.output.classesDir
manifest = osgiManifest {
classesDir = sourceSets.main.output.classesDir
classpath = configurations.runtime
Expand Down