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

Commit e6c00ef

Browse files
committed
fakeit option for genjava_message_artifacts
1 parent ad3c3b2 commit e6c00ef

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/genjava/genjava_main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def standalone_parse_arguments(argv):
8989
parser.add_argument('-p', '--package', action='store', default=None, help='package to generate (if not specified, all will be built)')
9090
parser.add_argument('-o', '--output-dir', action='store', default='build', help='output directory for the java code (e.g. build/foo_msgs)')
9191
parser.add_argument('-v', '--verbose', default=False, action='store_true', help='enable verbosity in debugging (false)')
92+
parser.add_argument('-f', '--fakeit', default=False, action='store_true', help='dont build, just list the packages it would build (false)')
9293
return parser.parse_args(argv)
9394

9495

@@ -107,5 +108,6 @@ def standalone_main(argv):
107108
sorted_package_tuples = rosjava_build_tools.catkin.index_message_package_dependencies_from_local_environment()
108109

109110
print("Generating message artifacts for: \n%s" % [p.name for (unused_relative_path, p) in sorted_package_tuples])
110-
for unused_relative_path, p in sorted_package_tuples:
111-
gradle_project.standalone_create_and_build(p.name, args.output_dir, args.verbose)
111+
if not args.fakeit:
112+
for unused_relative_path, p in sorted_package_tuples:
113+
gradle_project.standalone_create_and_build(p.name, args.output_dir, args.verbose)

0 commit comments

Comments
 (0)