|
|
@ -58,6 +58,7 @@ public class GitRepositoryService {
|
|
|
|
private static final String BRANCH_PREFIX = "refs/remotes/origin/";
|
|
|
|
private static final String BRANCH_PREFIX = "refs/remotes/origin/";
|
|
|
|
@Value("${extractor.custom-projects-dir}")
|
|
|
|
@Value("${extractor.custom-projects-dir}")
|
|
|
|
private String customProjectsDir;
|
|
|
|
private String customProjectsDir;
|
|
|
|
|
|
|
|
private final ExecutorService executorService = Executors.newFixedThreadPool(4);
|
|
|
|
|
|
|
|
|
|
|
|
private final StructuralUnitService structuralUnitService;
|
|
|
|
private final StructuralUnitService structuralUnitService;
|
|
|
|
|
|
|
|
|
|
|
@ -251,7 +252,6 @@ public class GitRepositoryService {
|
|
|
|
if (maybeFileName.isPresent()) {
|
|
|
|
if (maybeFileName.isPresent()) {
|
|
|
|
fileChange = new FileChange();
|
|
|
|
fileChange = new FileChange();
|
|
|
|
fileChange.setFile(maybeFileName.get());
|
|
|
|
fileChange.setFile(maybeFileName.get());
|
|
|
|
ExecutorService executorService = Executors.newFixedThreadPool(2);
|
|
|
|
|
|
|
|
Future<Boolean> futureEntity = executorService.submit(() -> {
|
|
|
|
Future<Boolean> futureEntity = executorService.submit(() -> {
|
|
|
|
return structuralUnitService.containsEntity(getContent(repository, commit, maybeFileName.get()));
|
|
|
|
return structuralUnitService.containsEntity(getContent(repository, commit, maybeFileName.get()));
|
|
|
|
});
|
|
|
|
});
|
|
|
|