Auf Thema antworten

Hi,


zuerst einmal lass das komische parsen der URL sein und initialisiere SVNKit einfach wie folgt:

[code=Java]

   static {

        setupLibrary();

    }

    private static void setupLibrary() {

        /*

         * For using over http:// and https://

         */

        DAVRepositoryFactory.setup();

        /*

         * For using over svn:// and svn+xxx://

         */

        SVNRepositoryFactoryImpl.setup();


        /*

         * For using over file:///

         */

        FSRepositoryFactory.setup();

    }

[/code]


[code=Java]

        SVNURL repositoryURL = null;

        try {

            repositoryURL = SVNURL.parseURIEncoded("URL hier eintragennn");

        } catch (SVNException e) {

            //Failure

        }


        ISVNOptions options = SVNWCUtil.createDefaultOptions(true);


        /*

         * Creates an instance of SVNClientManager providing authentication

         * information (name, password) and an options driver

         */

        SVNClientManager ourClientManager = SVNClientManager.newInstance(options);


        SVNUpdateClient updateClient = ourClientManager.getUpdateClient();

        /*

         * sets externals not to be ignored during the checkout

         */

        updateClient.setIgnoreExternals(false);

        /*

         * returns the number of the revision at which the working copy is

         */

        updateClient.doCheckout(repositoryURL, new File("destination"), SVNRevision.HEAD, SVNRevision.HEAD, SVNDepth.INFINITY, false);

[/code]


Zum Thema doku kann ich nur sagen, das Wiki beinhaltet sehr viel Doku....


z.B.:

https://wiki.svnkit.com/Managing_A_Working_Copy

https://wiki.svnkit.com/


Auch eine gute quelle ist der Source Code.


Gruß

Karl Heinz Marbaise



Oben