Meaningless Drivel is fun!*
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
Author

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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30116
    
150

Andrew,
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


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, 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?



or



or



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: 307
    
    2

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 https://example.com/svn/folder/project/trunk

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.

Joe


It's not what your program can do, it's what your users do with the program.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: SVN repo url
 
Similar Threads
is just Subclipse enough? or need install a svn server also?
How to create repository in svn by using java-svn API??
Should i still use Nexus Repository Manager although I am the only developer in my network?
SVN: add of not immediate child
how to download remote repo using maven 3