Created
August 30, 2011 18:48
-
-
Save vs/1181688 to your computer and use it in GitHub Desktop.
SVNKit: svn mkdir ^/tags/test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.tmatesoft.svn.core.javahl; | |
import org.tmatesoft.svn.core.*; | |
import org.tmatesoft.svn.core.internal.io.fs.*; | |
import org.tmatesoft.svn.core.wc.*; | |
public class MkDir { | |
public static void main(String[] args) throws SVNException { | |
FSRepositoryFactory.setup(); | |
final SVNClientManager manager = SVNClientManager.newInstance(); | |
final SVNCommitClient commitClient = manager.getCommitClient(); | |
final SVNURL url = SVNURL.parseURIDecoded("file:///tmp/repo/tags/test"); | |
final SVNProperties revisionProperties = new SVNProperties(); | |
commitClient.doMkDir(new SVNURL[] {url}, "Added directory", revisionProperties, false); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment