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

RosJava message definition and serialization artifact generators.

Notifications You must be signed in to change notification settings

rosjava/genjava

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Juan Ignacio Ubeira
Jan 23, 2019
670f13f · Jan 23, 2019

History

61 Commits
Aug 3, 2017
Feb 20, 2015
Dec 26, 2018
Jun 12, 2014
Feb 11, 2015
Jun 23, 2014
Jun 23, 2014
Jan 23, 2019
Mar 1, 2015
Feb 9, 2014
Jan 23, 2019
Jun 12, 2014
Feb 28, 2015

Repository files navigation

genjava

RosJava message definition and serialization artifact generators.

For future reference, executing the generator from the command line requires a command of the following kind:

java -classpath .:./message_generation-0.1.16.jar org.ros.internal.message.GenerateInterfaces

This doesn't work exactly though because it doesn't pull in the full classpath. Make sure that is set to include everything you need. You'll also need arguments of the kind we're currently using in the hydro groovy plugin:

        def generatedSourcesDir = "${p.buildDir}/generated-src"
        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.classpath = p.configurations.runtime
        generateSourcesTask.main = 'org.ros.internal.message.GenerateInterfaces'
        p.tasks.compileJava.source generateSourcesTask.outputs.files

About

RosJava message definition and serialization artifact generators.

Resources

Stars

Watchers

Forks

Packages

No packages published