File tree Expand file tree Collapse file tree
cldk/analysis/java/codeanalyzer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -168,11 +168,12 @@ def _get_codeanalyzer_exec(self) -> List[str]:
168168 codeanalyzer_exec = shlex .split (codeanalyzer_bin_path .__str__ ())
169169 else :
170170 print (f'analysis path: { self .analysis_json_path } ' )
171+ analysis_json_path_file = Path (self .analysis_json_path ).joinpath ("analysis.json" )
171172 if self .analysis_backend_path :
172173 analysis_backend_path = Path (self .analysis_backend_path )
173174 logger .info (f"Using codeanalyzer.jar from { analysis_backend_path } " )
174175 codeanalyzer_exec = shlex .split (f"java -jar { analysis_backend_path / 'codeanalyzer.jar' } " )
175- elif self . analysis_json_path :
176+ elif analysis_json_path_file . exists () :
176177 logger .info (f"Using existing analysis from { self .analysis_json_path } " )
177178 codeanalyzer_exec = shlex .split (f"java -jar codeanalyzer.jar" )
178179 else :
You can’t perform that action at this time.
0 commit comments