aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes How to find the location of Repository of my project? 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 "How to find the location of Repository of my project?" Watch "How to find the location of Repository of my project?" New topic
Author

How to find the location of Repository of my project?

Vinod Vinu
Ranch Hand

Joined: Aug 30, 2009
Posts: 217
hi first of all i want to know what is the meaning of 'Repository' in project. Iam using eclipse and working on a java j2ee project using struts, spring, hibernate, svn, and tomcat server in my office.

At home iam trying to setup the same envirnoment in my home laptop.
I have the copy of my project repository from office so that in my home laptop i want to find the new repository and replace it with my copied office's repository.

Where is the location of repository?

Thanks in advance.


Vinod Kumar Nair
"Any fool can write code that a computer can understan. Good programmers write code that humans can understand."
Ninad Kulkarni
Ranch Hand

Joined: Aug 31, 2007
Posts: 802

@ Vinod
In short whenever you make changes to project data that changes are automatically reflected in common shared project which is used at team level and shared by all team members so other can know what changes done to main project data.


SCJP 5.0 - JavaRanch FAQ - Java Beginners FAQ - SCJP FAQ - SCJP Mock Tests - Tutorial - JavaSE7 - JavaEE6 -Generics FAQ - JLS - JVM Spec - Java FAQs - Smart Questions
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

A "repository" is the source code control system's (SCCSs) location. We have no way of knowing where *your* repository is--but even if you have one, it's *not* the same one you have at work (unless you're using a distributed source control system, which is a different issue).

If you want to have a *local* repository, and accept that it's not the same one as your work repository, then set up and configure Subversion.
Velu Kasirajah
Greenhorn

Joined: Feb 06, 2010
Posts: 15
Vinod,
A repository in general is a central place where your artifacts (such as code) are stored. In your case this may be your source control system (CVS, SVN etc.) . If you are just trying to setup your project locally (not connected to any SVN repository) and have the complete code including the .project files, you can do this from Eclipse. Use the File-->Import-->General-->Existing Projects into Workspace option. This option looks for .project files. Good luck.

Velu Kasirajah


Velu Kasirajah
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5843
    
    7

I have the copy of my project repository from office

Exactly what is it that you have? For a source control repository, this would often consist of database files (or for subversion, a directory tree and its files). And usually those things are on a server that you can't get at. To make use of that at home you would have to install the source control software and figure out how to get it to use the files you have instead of the files it will create during installation.

Or do you mean a Maven repository? If so, the default location for the Maven repository is at .m2/repository in your home directory. If you meant a maven repository you can copy the files you have there.


JBoss In Action
Vinod Vinu
Ranch Hand

Joined: Aug 30, 2009
Posts: 217
thank you Peter Johnson ....i was actually talking abt the maven repository which is usually found under
.m2/repository

just tell me what is this? Is this the same as others above users has told me as a centralised shared project or something different?

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

No, it's not a source repository--it's a Maven repository. When you try to build the project locally, Maven will "download the internet" to you have all the required dependencies locally, and that's it. In general you never need to, or want to, worry about it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to find the location of Repository of my project?