Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --module-path optioin in Javac command of tools/check.py #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
6 changes: 5 additions & 1 deletion do_like_javac/tools/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ def run(args, javac_commands, jars):
if args.lib_dir:
cp += pp + args.lib_dir + ':'
java_files = jc['java_files']
cmd = checker_command + ["-classpath", cp] + java_files
cmd = checker_command + ["-classpath", cp]
if '-module-path' in javac_switches:
mp = javac_switches['-module-path']
cmd += ["--module-path", mp]
cmd += java_files
common.run_cmd(cmd, args, 'check')

## other_args is other command-line arguments to javac
Expand Down