aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes is just Subclipse enough? or need install a svn server also? 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 "is just Subclipse enough? or need install a svn server also?" Watch "is just Subclipse enough? or need install a svn server also?" New topic
Author

is just Subclipse enough? or need install a svn server also?

peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 240
I have installed subclipse1.8.7 in eclipse, then when I want to add a new SVN repository, I type

but there is error

svn: Unable to connect to a repository at URL 'file:///D:/subversionRepository/StockWatcher'
svn: Unable to open an ra_local session to URL
svn: Unable to open repository 'file:///D:/subversionRepository/StockWatcher'


is it need to install svn server first?
sorry for the foolish question as I am new to svn.
I just use for local machine.
peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 240
I now install VisualSVN server, but I still found some unknwon.
if I just create the repository in visualSVN server and then in eclipse, using sclipse, select team > share, then in synchorine view, put in svn and commit, it is ok, but no folder like trunk, branches, tag.
if create project in svn server first, then the svn server will help me create the folder trunk, branches, tag, but then I don't know how to put my project in eclipse to visualsvn trunk folder.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16305
    
  21

Subversion actually doesn't impose a whole lot of constraints on how it stores things. The "trunk, tags and branches" directories are a convention, not an absolute requirement. Some of the Eclipse plugins do add their own interpretation so that, for example, they'll ask you if you really want to update a tag, since in theory tags refer to permanent snapshots, but Subversion itself doesn't care.

Normally when I commit a project, I tell the plugin to place the project in a trunk and build any missing nodes, so that for example, "myproject" ends up in the repository under "myproject/trunk/myproject". I suppose that "myproject/trunk" would do, but I prefer the extra flexibility.

Of course, occasionally, I forget to put in the extra path parts when I do the initial commit.


Customer surveys are for companies who didn't pay proper attention to begin with.
peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 240
thanks for the reply.
there is something I still don't know.
Assume I have a project and I want to place this project into VisualSVN server through subclipse, what I need to do is team > share, add to repository and commit, but no need to do checkout procedure?
Checkout procedure is used for other member to get the project from SVN server to their working place, is this correct?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16305
    
  21

Functionally, you have to import the project into the repository, then check it out, because the difference between the original project and a working copy is that the working copy also contains the svn management metadata (the hidden .svn folders and so forth).

However, unless I'm mistaken, the subclipse plugin handles all that stuff for you. So yes, do a "team/share" and add the project. If I'm correct, you should then see the SVN project name appear next to the Eclipse project name in the Navigator tree view.
peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 240
yes, I have try using subclipse, to import a existing eclipse project to svn server, just right click and select team > share project, then in Team synchronizing perspective, add the source to repository ("add to version control") and commit it (if not commit, the source cannot be seen in SVN server),
then in eclipse package explorer, I found my eclipse project name "GWTDesignerFirstTrial" has a grey name "[GWTDesignerFirstTrial/trunk]" next to it.

and one thing also feel strange, in window explorer, go to the workspace folder, there is only one .svn folder (e.g. GWTDesignerFirstTrial\.svn),
but in normal, there should be one .svn folder under each folder of the check in project in window explorer, isn't it?

I found the term of subclipse is really difficult to understand. it has no something like "import", "checkout"!!

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

In subclipse, when you go to Team | Share Project, the only thing that is done is creating the project folder in Eclipse. You then need to go to Team | Commit and then all of the source files will be uploaded to the Subversion server. Once that is done, you will see the .svn folder in every folder within your project.

As far as checking out, you need to go to File | Import | SVN | Checkout Project from SVN. Then select the repository location and then browse to your project's folder within Subversion.


JBoss In Action
peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 240
Peter Johnson wrote:In subclipse, when you go to Team | Share Project, the only thing that is done is creating the project folder in Eclipse. You then need to go to Team | Commit and then all of the source files will be uploaded to the Subversion server. Once that is done, you will see the .svn folder in every folder within your project.

As far as checking out, you need to go to File | Import | SVN | Checkout Project from SVN. Then select the repository location and then browse to your project's folder within Subversion.


seems not, I already try to commit all of the source file to subversion server, but there is still only one .svn folder under the project seen in window explorer. anyway, other things seems normal.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

In that case, I would have to see the complete contents of both the project directory and of the directory in Subversion, because I have never seen the behavior you describe, and I've been using subclipse for years. To get the project contents, open a command prompt, cd to the project directory and enter:

dir /a /b /s *

To do the same for the files in Subversion, enter (replacing <url-for-project> with the actual url):

svn -R <url-for-project>

Also, when you created the project in Eclipse, you did put it into the default workspace directory, right? That is, you did not choose some directory outside of workspace.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16305
    
  21

peter tong wrote:

seems not, I already try to commit all of the source file to subversion server, but there is still only one .svn folder under the project seen in window explorer. anyway, other things seems normal.


2 things:

1. Depending what view you use in Eclipse, the .svn folders may not display. That is the way that that particular view looks at things.

2. The .svn folders may not appear even in Eclipse views that would show them until you refresh the view.

In the Windows File Explorer, the .svn folders may not be visible under normal circumstances because their "Invisible" flags should have been set. Invisible files/folders will only be seen if the Explorer settings for the directory being viewed allow it, either on a per-folder override, or via inheritance.

In other words, we're pretty positive that the .svn folders are there. Seeing them is another matter. Then again, there's no reason why you would normally want to see them.
peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 240
the forum always said I have use abbreviation in reply although I have not.
with no method, I put the listing as attachment.

I cannot list the svn server using

it always said cannot connnect


[Thumbnail for svn3.jpg]

peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 240
I try to test in my home, and the result is as follow, there is only one .svn folder in window exploror
the output of dir /a /b /s * is


the output from svn list -r "url" is


Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

I just now noticed that you installed subclipse 1.8.x, which use the Subversion 1.7 client. At times, it helps to RFTM:
http://subversion.apache.org/docs/release-notes/1.7.html#single-db
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: is just Subclipse enough? or need install a svn server also?