java-parsing changes added
This commit is contained in:
@@ -20,4 +20,9 @@ public class GitCloneInput {
|
||||
private int maxNumberOfChunks;
|
||||
private int minChunkSize;
|
||||
private int defaultChunkSize;
|
||||
|
||||
private boolean codeParsingToBeDone;
|
||||
private String parseStatus;
|
||||
private String reverseEngineeringStatus;
|
||||
private String codeType;
|
||||
}
|
||||
|
||||
@@ -25,4 +25,9 @@ public class KSGitInfo {
|
||||
private String ingestionStatus;
|
||||
private Date ingestionDate;
|
||||
private String ingestionDateFormat;
|
||||
|
||||
private boolean codeParsingToBeDone;
|
||||
private String parseStatus;
|
||||
private String reverseEngineeringStatus;
|
||||
private String codeType;
|
||||
}
|
||||
|
||||
@@ -26,11 +26,16 @@ public class GitUtils {
|
||||
info.setRepoName(gitCloneInput.getRepoName());
|
||||
info.setBranch(gitCloneInput.getBranch());
|
||||
info.setCommitId(gitCloneInput.getCommitId());
|
||||
info.setRepoPath(basePath+ File.separator +gitCloneInput.getBranch());
|
||||
info.setRepoPath(basePath+ File.separator +gitCloneInput.getRepoName());
|
||||
info.setIngestionStatus("REPO-NEW");
|
||||
info.setIngestionDate(new Date());
|
||||
info.setIngestionDateFormat(new SimpleDateFormat("MM/dd/yy").format(new Date()));
|
||||
|
||||
info.setCodeParsingToBeDone(gitCloneInput.isCodeParsingToBeDone());
|
||||
info.setCodeType(gitCloneInput.getCodeType());
|
||||
info.setParseStatus("NEW");
|
||||
info.setReverseEngineeringStatus("NEW");
|
||||
|
||||
logger.info("KSGitInfo Created: {}, {}",info.getRepoName(),info.getBranch());
|
||||
return info;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user