This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Building Blockchain Apps and have Michael Yuan on-line!
See this thread for details.
Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

SVN repo url

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
author & internet detective
Posts: 39890
798
Eclipse IDE VI Editor Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Andrew Cane
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 334
2
Netbeans IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
this is supposed to be a surprise, but it smells like a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!