File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes SVN repo url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "SVN repo url" Watch "SVN repo url" New topic

SVN repo url

Andrew Cane
Ranch Hand

Joined: Aug 07, 2013
Posts: 91
I just set up a new svn repo in my laptop by using

and now I have "repository" folder in my c:\svn folder

after that, I want to import my java project (the project name is svntest) for the first time into the repository by first creating svntest folder inside repo and then adding the ttb folder using:

but I got "could not connect to server (http://localhost)"

am I missing something here? thanks
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33124

Since you aren't running a server for your SVN, you could just use the file:// protocol to reference your local repository. Here is an example

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Andrew Cane
Ranch Hand

Joined: Aug 07, 2013
Posts: 91
so, does that mean http(s) protocol only works for remote repository? and I must use svn or file protocol for local repository?
and also, if I set the local repository with the following command:

inside this repository, I have project A and B and each has ttb folder

how should I address trunk in project A?



I just want to know how the physical folder structure of the repository will affect the URL. thanks
Joe Areeda
Ranch Hand

Joined: Apr 15, 2011
Posts: 331

Hi Andrew,

I think you're missing something about the protocol, server and local file repositories. I suggest you read Jeanne's link.

Our svn repositories are hosted on Linux and use Apache as the front end. Therefore our urls are something like

If you don't set up a server and there are different types not just a web server, you use the file:// protocol id which means you are specifying the full path to the directory you're interested in.


It's not what your program can do, it's what your users do with the program.
I agree. Here's the link:
subject: SVN repo url
It's not a secret anymore!