0

その場で svn ディレクトリのバージョン管理されたカスタム プロパティの値を変更する必要があります。コンテンツを変更したくありません。既存のディレクトリのプロパティの値を変更するだけです。Javaでsvnkitを使用しています。

どうすればいいですか?

example: 
http:://svnserver.com/example/directorya   ... has svn property: myproperty = abc

after the operation:
http:://svnserver.com/example/directorya   ... has svn property: myproperty = def
4

1 に答える 1

1

どういうわけかそれを機能させました:

SVNRepository repository = SVNRepositoryFactory.create(url);

ISVNAuthenticationManager authManager = SVNWCUtil.createDefaultAuthenticationManager(user,password);
repository.setAuthenticationManager(authManager);

SVNPropertyValue svnPropertyValue = SVNPropertyValue.create("def");
ISVNEditor editor = repository.getCommitEditor("comment", null);
editor.openRoot(-1);
editor.openDir("dirname", -1);
editor.changeDirProperty("myproperty", svnPropertyValue);
editor.closeEdit();
于 2011-09-20T10:33:08.743 に答える