provided static path for Filestorage
This commit is contained in:
@@ -33,8 +33,6 @@ import com.olympus.apollo.repository.KSGitInfoRepository;
|
||||
|
||||
@Service
|
||||
public class GitRepositoryIngestor {
|
||||
@Value("${ingestion.repository.basepath}")
|
||||
private String ingestionRepositoryBasePath;
|
||||
|
||||
private final VectorStore vectorStore;
|
||||
|
||||
@@ -69,7 +67,7 @@ public class GitRepositoryIngestor {
|
||||
|
||||
|
||||
private void ingestRepo(String repo, KSGitInfo ksGitInfo) {
|
||||
String repoPath = ingestionRepositoryBasePath +"\\"+ repo + "\\";
|
||||
String repoPath = "C:\\Users\\s.shamrao.shinde\\GenAIStorage" +"\\"+ repo + "\\";
|
||||
logger.info("Repository path : " + repoPath);
|
||||
try (Git git = Git.open(new File(repoPath))) {
|
||||
ksGitInfo.setIngestionStatus("IN PROGRESS");
|
||||
|
||||
@@ -8,11 +8,9 @@ public class StorageProperties {
|
||||
/**
|
||||
* Folder location for storing files
|
||||
*/
|
||||
@Value("${ingestion.repository.basepath}")
|
||||
private String ingestionRepositoryBasePath;
|
||||
|
||||
private String location = ingestionRepositoryBasePath;
|
||||
//private String location = "C:\\WindTre\\Repository";
|
||||
//private String location = ingestionRepositoryBasePath;
|
||||
private String location = "C:\\WindTre\\Repository";
|
||||
public String getLocation() {
|
||||
return location;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user