Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
ROS Java GenJava
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CeTI
ROS
ROS Java Packages
ROS Java GenJava
Commits
c91db4d2
Commit
c91db4d2
authored
10 years ago
by
Daniel Stonier
Browse files
Options
Downloads
Patches
Plain Diff
variable length list of packages to build.
parent
2da0e2b8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/genjava/genjava_main.py
+4
-6
4 additions, 6 deletions
src/genjava/genjava_main.py
with
4 additions
and
6 deletions
src/genjava/genjava_main.py
+
4
−
6
View file @
c91db4d2
...
@@ -86,11 +86,12 @@ def main(argv):
...
@@ -86,11 +86,12 @@ def main(argv):
def
standalone_parse_arguments
(
argv
):
def
standalone_parse_arguments
(
argv
):
parser
=
argparse
.
ArgumentParser
(
description
=
'
Generate artifacts for any/all discoverable message packages.
'
)
parser
=
argparse
.
ArgumentParser
(
description
=
'
Generate artifacts for any/all discoverable message packages.
'
)
parser
.
add_argument
(
'
-p
'
,
'
--package
'
,
action
=
'
store
'
,
default
=
None
,
help
=
'
package to generate
(if not specified, all will be built)
'
)
parser
.
add_argument
(
'
-p
'
,
'
--package
s
'
,
action
=
'
store
'
,
nargs
=
'
*
'
,
default
=
[]
,
help
=
'
a list of
package
s
to generate
artifacts for
'
)
parser
.
add_argument
(
'
-o
'
,
'
--output-dir
'
,
action
=
'
store
'
,
default
=
'
build
'
,
help
=
'
output directory for the java code (e.g. build/foo_msgs)
'
)
parser
.
add_argument
(
'
-o
'
,
'
--output-dir
'
,
action
=
'
store
'
,
default
=
'
build
'
,
help
=
'
output directory for the java code (e.g. build/foo_msgs)
'
)
parser
.
add_argument
(
'
-v
'
,
'
--verbose
'
,
default
=
False
,
action
=
'
store_true
'
,
help
=
'
enable verbosity in debugging (false)
'
)
parser
.
add_argument
(
'
-v
'
,
'
--verbose
'
,
default
=
False
,
action
=
'
store_true
'
,
help
=
'
enable verbosity in debugging (false)
'
)
parser
.
add_argument
(
'
-f
'
,
'
--fakeit
'
,
default
=
False
,
action
=
'
store_true
'
,
help
=
'
dont build, just list the packages it would build (false)
'
)
parser
.
add_argument
(
'
-f
'
,
'
--fakeit
'
,
default
=
False
,
action
=
'
store_true
'
,
help
=
'
dont build, just list the packages it would build (false)
'
)
return
parser
.
parse_args
(
argv
)
parsed_arguments
=
parser
.
parse_args
(
argv
)
return
parsed_arguments
def
standalone_main
(
argv
):
def
standalone_main
(
argv
):
...
@@ -102,10 +103,7 @@ def standalone_main(argv):
...
@@ -102,10 +103,7 @@ def standalone_main(argv):
args
=
standalone_parse_arguments
(
argv
[
1
:])
args
=
standalone_parse_arguments
(
argv
[
1
:])
#print("genjava %s/%s/%s" % (args.package, args.output_dir, args.verbose))
#print("genjava %s/%s/%s" % (args.package, args.output_dir, args.verbose))
if
args
.
package
is
not
None
:
sorted_package_tuples
=
rosjava_build_tools
.
catkin
.
index_message_package_dependencies_from_local_environment
(
package_name_list
=
args
.
packages
)
sorted_package_tuples
=
rosjava_build_tools
.
catkin
.
index_message_package_dependencies_from_local_environment
(
package_name
=
args
.
package
)
else
:
sorted_package_tuples
=
rosjava_build_tools
.
catkin
.
index_message_package_dependencies_from_local_environment
()
print
(
"
Generating message artifacts for:
\n
%s
"
%
[
p
.
name
for
(
unused_relative_path
,
p
)
in
sorted_package_tuples
])
print
(
"
Generating message artifacts for:
\n
%s
"
%
[
p
.
name
for
(
unused_relative_path
,
p
)
in
sorted_package_tuples
])
if
not
args
.
fakeit
:
if
not
args
.
fakeit
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment