Merged PR 22: Fix for RE module - change "java" for codeType
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
package com.olympus.apollo.feign.services;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.olympus.apollo.repository.KSGitInfoRepository;
|
||||
import com.olympus.dto.ApolloParseRequestDTO;
|
||||
import com.olympus.dto.CommonReverseEngRequest;
|
||||
import com.olympus.feign.JavaREModule;
|
||||
import com.olympus.model.apollo.KSGitInfo;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
@Service
|
||||
public class REModuleService {
|
||||
@@ -33,13 +34,15 @@ public class REModuleService {
|
||||
commonReverseEngRequest.setCommitSha(gitInfo.getCommitId());
|
||||
|
||||
gitInfo.getCodeTypes().forEach(codeType -> {
|
||||
if(codeType.getType().equalsIgnoreCase("java")){
|
||||
/*if(codeType.getType().equalsIgnoreCase("java")){
|
||||
commonReverseEngRequest.setApplicationType(codeType.getType());
|
||||
System.out.println("value is :"+javaREModule.revApplication(commonReverseEngRequest));
|
||||
}
|
||||
if(codeType.getType().equalsIgnoreCase("jsp")) {
|
||||
System.out.println("JSP Parser Module");
|
||||
}
|
||||
}*/
|
||||
commonReverseEngRequest.setApplicationType(codeType.getType());
|
||||
javaREModule.revApplication(commonReverseEngRequest);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user