diff --git a/RepositoryMinerForGit/src/main/java/Test.java b/RepositoryMinerForGit/src/main/java/Test.java index 792a953..5af584e 100644 --- a/RepositoryMinerForGit/src/main/java/Test.java +++ b/RepositoryMinerForGit/src/main/java/Test.java @@ -1,5 +1,4 @@ import java.io.File; -import java.nio.file.Path; import java.io.IOException; import java.util.List; @@ -42,18 +41,7 @@ if( git != null ){ //. git clone File project = new File( "./project" ); - - String filePath = "./project"; - - // フォルダの存在を確認する - if (project.exists()) { - System.out.println("projectフォルダが存在します"); - delete(filePath); - } else { - System.out.println("projectフォルダが存在しません"); - } - - git.cloneRepository().setURI( acanthus_client ).setDirectory( project ).call(); + git.cloneRepository().setURI( amaryllis_server ).setDirectory( project ).call(); } PlotWalk revWalk = new PlotWalk(repo); @@ -67,6 +55,8 @@ plotCommitList.fillTo(Integer.MAX_VALUE); for (PlotCommit c: plotCommitList) { + //詳細情報 + System.out.println("アカウント、日付: "+c.getAuthorIdent()); // コミットメッセージ System.out.println("コミットメッセージ: " + c.getFullMessage()); ObjectId curId = c.getTree(); @@ -114,18 +104,4 @@ } - public static void delete(String path) { - File filePath = new File(path); - String[] list = filePath.list(); - for(String file : list) { - File f = new File(path + File.separator + file); - if(f.isDirectory()) { - delete(path + File.separator + file); - }else { - f.delete(); - } - } - filePath.delete(); - } - }