私は現在、計算に関するプロジェクトに取り組んでいます。プロジェクトの主要部分を実行しました。また、SVNコミット機能をコードに統合しました(.iniファイルを使用して特定のアドレスを読み取るなど)。
ファイルを簡単にコミットできます。私が試しているのは、コンソールにリアルタイムログを実装したいということです。ログをコンソールに実装する方法はありますか?一般的なログではなく、リアルタイムである必要があるコミットログ。
- 私はMac用のEclipseを使用しています。SVNKitについて聞いたことがありますが、SVNについては本当に貧弱です。
情報を事前に感謝します
- - 編集 - -
これは、.iniファイルからsvnコマンドを読み取るためのコードです。
public static String iniSVNOkut(String deger, String getObje, String fetchObje){
Ini uzantilariAlIni = null;
try
{
String uzantiAyarlari = "Uzantilar.ini";
try
{
uzantilariAlIni = new Ini(new FileReader(uzantiAyarlari));
}
catch (InvalidFileFormatException e)
{
System.err.print("Hata InvalidFileFormat : " + e.getMessage() + "\n" );
e.printStackTrace();
}
catch(FileNotFoundException e)
{
System.err.print("Hata FileNotFoundException : " + e.getMessage() + "\n" );
e.printStackTrace();
}
catch (IOException e)
{
System.err.print("Hata IOException : " + e.getMessage() + "\n" );
e.printStackTrace();
}
return deger = uzantilariAlIni.get(getObje).fetch(fetchObje);
}
finally
{
}
}
これは.iniに含まれているものです
[svnAdresi]
svnAdresiniAl = svn co http://svn.svnkit.com/repos/svnkit/trunk/ /Users/sample/Documents/workspace/SatirHesaplaGUI/svnTestMAC
これは私がそれを呼ぶ方法です
String svnAdresi;
svnAdresi = IniFonksiyon.iniSVNOkut(svnAdresi, "svnAdresi", "svnAdresiniAl");
Runtime cmdCalistir = Runtime.getRuntime();
try
{
Process islem = cmdCalistir.exec(svnAdresi);
}
catch (Exception e)
{
e.printStackTrace();
}