[infer] parse the classpath information from the javac command line

Summary: Pass the classpath infromation from the javac command line option file to allow the dection of errors accros Buck targets

Reviewed By: sblackshear

Differential Revision: D5018329

fbshipit-source-id: cf13198
master
Jeremy Dubreil 8 years ago committed by Facebook Github Bot
parent 6f33fa4089
commit 62be37f163

@ -777,9 +777,6 @@ let args_env_var = "INFER_ARGS"
let extra_env_args = ref []
let extend_env_args args =
extra_env_args := List.rev_append args !extra_env_args
let extend_env_args args =
extra_env_args := List.rev_append args !extra_env_args
@ -792,8 +789,9 @@ let parse_args ~usage ?parse_all action args0 =
then
(* for now, we only need to parse -d. we could parse more if we wanted to, but we would risk
incurring the wrath of ARGUMENT_LIST_TOO_LONG *)
let should_parse =
String.is_prefix ~prefix:"-" in
let should_parse = function
| "-d" | "-cp" | "-classpath" -> true
| _ -> false in
let fname = String.slice arg 1 (String.length arg) in
match In_channel.read_lines fname with
| lines ->

Loading…
Cancel
Save