@@ -27,14 +27,16 @@ interface BazelClient {
2727class BazelClientImpl implements BazelClient {
2828 private Path workingDirectory ;
2929 private Path bazelPath ;
30+ private Boolean verbose ;
3031 private List <String > startupOptions ;
3132 private List <String > commandOptions ;
3233
33- BazelClientImpl (Path workingDirectory , Path bazelPath , String startupOptions , String commandOptions ) {
34+ BazelClientImpl (Path workingDirectory , Path bazelPath , String startupOptions , String commandOptions , Boolean verbose ) {
3435 this .workingDirectory = workingDirectory .normalize ();
3536 this .bazelPath = bazelPath ;
3637 this .startupOptions = startupOptions != null ? Arrays .asList (startupOptions .split (" " )): new ArrayList <String >();
3738 this .commandOptions = commandOptions != null ? Arrays .asList (commandOptions .split (" " )): new ArrayList <String >();
39+ this .verbose = verbose ;
3840 }
3941
4042 @ Override
@@ -94,13 +96,15 @@ private List<Build.Target> performBazelQuery(String query) throws IOException {
9496
9597 List <String > cmd = new ArrayList <String >();
9698 cmd .add ((bazelPath .toString ()));
99+ if (verbose ) {
100+ System .out .println (String .format ("Executing Query: %s" , query ));
101+ cmd .add ("--bazelrc=/dev/null" );
102+ }
97103 cmd .addAll (this .startupOptions );
98104 cmd .add ("query" );
99105 cmd .add ("--output" );
100106 cmd .add ("streamed_proto" );
101107 cmd .add ("--order_output=no" );
102- cmd .add ("--show_progress=false" );
103- cmd .add ("--show_loading_progress=false" );
104108 cmd .add ("--keep_going" );
105109 cmd .addAll (this .commandOptions );
106110 cmd .add ("--query_file" );
0 commit comments