Skip to content

Commit

Permalink
Add deprecation warning for -a, --additional-jars (#49)
Browse files Browse the repository at this point in the history
Fixes #43
  • Loading branch information
hanslovsky authored Aug 7, 2019
1 parent 5d59122 commit 7788370
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jgo/jgo.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,11 @@ def run(parser, argv=sys.argv[1:], stdout=None, stderr=None):
jvm_args = unknown if unknown else []
program_args = [] if endpoint_index == -1 else argv[endpoint_index+1:]

if args.additional_jars is not None and len(args.additional_jars) > 0:
_logger.warning('The -a, --additional-jars option has been deprecated and will be removed in the future. '
'Please use `mvn install:install-file\' instead to make relevant JARS available in your '
'local Maven repository and pass appropriate coordinates as endpoints.')

if args.verbose > 0:
_logger.setLevel(logging.DEBUG)

Expand Down

0 comments on commit 7788370

Please sign in to comment.