|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Checkout - apache serverHi,
I have set up a SVN repository on a localhost apache server. I am able to check in and check out via SVN, but having trouble with svn kit. I am probable missing something in my code. I get this error: Exception in thread "main" org.tmatesoft.svn.core.SVNException: svn: connection refused by the server Java: FSRepositoryFactory.setup(); SVNRepositoryFactoryImpl.setup(); SVNURL url = null; File destPath = new File(args[i]); SVNRevision revision; revision = SVNRevision.HEAD; url = SVNURL.parseURIDecoded("svn://localhost/svn/cecom-resp/"); UpdateEventHandler myUpdateEventHandler = new UpdateEventHandler(); ourClientManager.getUpdateClient().setEventHandler(myUpdateEventHandler) ; checkout(url, revision, destPath, true); Method: private static long checkout(SVNURL url, SVNRevision revision, File destPath, boolean isRecursive) throws SVNException { SVNUpdateClient updateClient = ourClientManager.getUpdateClient(); updateClient.setIgnoreExternals(false); System.out.println("Finished updating"); return updateClient.doCheckout(url, destPath, revision, revision, isRecursive); } Regards, Phil --------------------------------------------------------------------- To unsubscribe, e-mail: svnkit-users-unsubscribe@... For additional commands, e-mail: svnkit-users-help@... |
|
|
Re: Checkout - apache serverHello,
If you're trying to connect repository over http protocol, then add the following: >FSRepositoryFactory.setup(); >SVNRepositoryFactoryImpl.setup(); DAVRepositoryFactory.setup(); And change url to make it use http protocol, not svn: > url = SVNURL.parseURIDecoded("http://localhost/svn/cecom-resp/"); Alexander Kitaev, TMate Software, http://svnkit.com/ - Java [Sub]Versioning Library! Vallone, Philip Mr CTR USA AMC wrote: > Hi, > > I have set up a SVN repository on a localhost apache server. I am able > to check in and check out via SVN, but having trouble with svn kit. I am > probable missing something in my code. I get this error: > > Exception in thread "main" org.tmatesoft.svn.core.SVNException: svn: > connection refused by the server > > Java: > > FSRepositoryFactory.setup(); > > SVNRepositoryFactoryImpl.setup(); > SVNURL url = null; > File destPath = new File(args[i]); > SVNRevision revision; > revision = SVNRevision.HEAD; > url = > SVNURL.parseURIDecoded("svn://localhost/svn/cecom-resp/"); > > UpdateEventHandler myUpdateEventHandler = new > UpdateEventHandler(); > > ourClientManager.getUpdateClient().setEventHandler(myUpdateEventHandler) > ; > checkout(url, revision, destPath, true); > > > Method: > > private static long checkout(SVNURL url, SVNRevision revision, File > destPath, boolean isRecursive) throws SVNException { > > SVNUpdateClient updateClient = > ourClientManager.getUpdateClient(); > > updateClient.setIgnoreExternals(false); > System.out.println("Finished updating"); > return updateClient.doCheckout(url, destPath, revision, > revision, isRecursive); > } > > Regards, > > Phil > > --------------------------------------------------------------------- > To unsubscribe, e-mail: svnkit-users-unsubscribe@... > For additional commands, e-mail: svnkit-users-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: svnkit-users-unsubscribe@... For additional commands, e-mail: svnkit-users-help@... |
|
|
RE: Checkout - apache serverPerfect. Thanks.
-----Original Message----- From: Alexander Kitaev [mailto:Alexander.Kitaev@...] Sent: Wednesday, July 23, 2008 11:39 AM To: svnkit-users@... Subject: Re: Checkout - apache server Hello, If you're trying to connect repository over http protocol, then add the following: >FSRepositoryFactory.setup(); >SVNRepositoryFactoryImpl.setup(); DAVRepositoryFactory.setup(); And change url to make it use http protocol, not svn: > url = SVNURL.parseURIDecoded("http://localhost/svn/cecom-resp/"); Alexander Kitaev, TMate Software, http://svnkit.com/ - Java [Sub]Versioning Library! Vallone, Philip Mr CTR USA AMC wrote: > Hi, > > I have set up a SVN repository on a localhost apache server. I am able > to check in and check out via SVN, but having trouble with svn kit. I > am probable missing something in my code. I get this error: > > Exception in thread "main" org.tmatesoft.svn.core.SVNException: svn: > connection refused by the server > > Java: > > FSRepositoryFactory.setup(); > > SVNRepositoryFactoryImpl.setup(); > SVNURL url = null; > File destPath = new File(args[i]); > SVNRevision revision; > revision = SVNRevision.HEAD; > url = > SVNURL.parseURIDecoded("svn://localhost/svn/cecom-resp/"); > > UpdateEventHandler myUpdateEventHandler = new > UpdateEventHandler(); > > ourClientManager.getUpdateClient().setEventHandler(myUpdateEventHandle > r) > ; > checkout(url, revision, destPath, true); > > > Method: > > private static long checkout(SVNURL url, SVNRevision revision, File > destPath, boolean isRecursive) throws SVNException { > > SVNUpdateClient updateClient = > ourClientManager.getUpdateClient(); > > updateClient.setIgnoreExternals(false); > System.out.println("Finished updating"); > return updateClient.doCheckout(url, destPath, revision, > revision, isRecursive); > } > > Regards, > > Phil > > --------------------------------------------------------------------- > To unsubscribe, e-mail: svnkit-users-unsubscribe@... > For additional commands, e-mail: svnkit-users-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: svnkit-users-unsubscribe@... For additional commands, e-mail: svnkit-users-help@... --------------------------------------------------------------------- To unsubscribe, e-mail: svnkit-users-unsubscribe@... For additional commands, e-mail: svnkit-users-help@... |
| Free Forum Powered by Nabble | Forum Help |