Skip to main content



      Home
Home » Newcomers » Newcomers » Eclipse 3.2 - Want to share Workspace with others
Eclipse 3.2 - Want to share Workspace with others [message #178197] Fri, 03 November 2006 09:33 Go to next message
Eclipse UserFriend
Originally posted by: Krismu.hotmail.com

Hi,

I have established a workspace with 10 project. I have setup classpaths
using User Libraries for these projects and also setup inter-dependencies
between projects. So it is critical that the developers use the same
setup.

In this workspace I am using Linked Resources for accessing all the source
code.

Is there any easy way to share this workspace to my developers in the
team? I intend to write an ant build file which when launched will setup
the workspace to the developer's PC. I also expect using a properties file
to get the Source Code folders (for the Linked Resources) and for setting
up the libraries.

If someone has done so, please let me know.

Regds
Krishnan
Re: Eclipse 3.2 - Want to share Workspace with others [message #178212 is a reply to message #178197] Fri, 03 November 2006 10:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wayne.beaton._NOSPAM_eclipse.org

Krishnan wrote:
> Hi,
>
> I have established a workspace with 10 project. I have setup classpaths
> using User Libraries for these projects and also setup
> inter-dependencies between projects. So it is critical that the
> developers use the same setup.
> In this workspace I am using Linked Resources for accessing all the
> source code.
> Is there any easy way to share this workspace to my developers in the
> team? I intend to write an ant build file which when launched will setup
> the workspace to the developer's PC. I also expect using a properties
> file to get the Source Code folders (for the Linked Resources) and for
> setting up the libraries.
> If someone has done so, please let me know.
> Regds
> Krishnan
>
Ideally, you should share your code using a SCM such as CVS or
Subversion. This will take care of propogating changes across
developers. Trying to share workspaces may work, but will cause you
endless grief as you try to coordinate changes between developers.

Wayne
Re: Eclipse 3.2 - Want to share Workspace with others [message #178228 is a reply to message #178197] Fri, 03 November 2006 10:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

Krishnan wrote:
> Hi,
>
> I have established a workspace with 10 project. I have setup classpaths
> using User Libraries for these projects and also setup
> inter-dependencies between projects. So it is critical that the
> developers use the same setup.
> In this workspace I am using Linked Resources for accessing all the
> source code.
> Is there any easy way to share this workspace to my developers in the
> team? I intend to write an ant build file which when launched will setup
> the workspace to the developer's PC. I also expect using a properties
> file to get the Source Code folders (for the Linked Resources) and for
> setting up the libraries.
> If someone has done so, please let me know.
> Regds
> Krishnan
>
Workspaces aren't designed to be shared, but fortunately projects are.
You will want to share the .classpath and .project files with your team
members. These files define the organization of your project and its
relationship to other projects. Normally, these files are checked into
peoples source code management repositories (CVS, etc). Team members
can access the projects by performing a File->Import->Existing projects
into workspace operation.

User libraries and linked resources depend on the file system hierarchy
on each individual developers workstation since they often point at
arbitrary locations in the file system. You can export the Linked
resource definitions using File->Export->Preferences. User libraries
are exported from the Windows->Preferences->Java->Build Path->User
Libraries page. If the other team members don't have the same file
system hierarchy, they will need to edit these after importing.

The exported preferences and user libraries are stored in XML files, so
I guess it might be possible to setup a script that asks the developer
where links should point and libraries are located. The script could
then make necessary changes to the XML files so that they point to the
correct location when the developer imports them into their workspace.

The steps to follow would involve:
1) Check out source from scm.
2) Run script to setup links/library locations.
3) Run Eclipse and specify a workspace location.
4) Import the links as preferences and the library locations as user
libraries.
5) Import the projects.
Re: Eclipse 3.2 - Want to share Workspace with others [message #178249 is a reply to message #178228] Fri, 03 November 2006 11:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Krismu.hotmail.com

Thanks for the information. I think I got what I wanted. I was looking for
an easy way out. Looks like I am not going to get it if I don't user SCM
with CVS or Subversion. I am using ClearCase and I will have to do the
hard way.
Re: Eclipse 3.2 - Want to share Workspace with others [message #178270 is a reply to message #178249] Fri, 03 November 2006 12:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wayne.beaton._NOSPAM_eclipse.org

Krishnan wrote:
> Thanks for the information. I think I got what I wanted. I was looking
> for an easy way out. Looks like I am not going to get it if I don't user
> SCM with CVS or Subversion. I am using ClearCase and I will have to do
> the hard way.
>
>
It really all depends on how you define easy. Keeping track of changes
across multiple developers without using an SCM can be very hard
(especially if multiple developers are changing the same files).

Wayne
Re: Eclipse 3.2 - Want to share Workspace with others [message #178318 is a reply to message #178249] Fri, 03 November 2006 18:46 Go to previous message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

Krishnan wrote:
> Thanks for the information. I think I got what I wanted. I was looking
> for an easy way out. Looks like I am not going to get it if I don't user
> SCM with CVS or Subversion. I am using ClearCase and I will have to do
> the hard way.
>
>
ClearCase is an SCM. We use it at work and store our Eclipse projects
into it. In fact, there is a ClearCase plugin written by IBM on the
Rational site. The plugin integrates ClearCase with Eclipse. You can
create your projects in a ClearCase view. Make sure that you check in
the .project and .classpath files.
Previous Topic:Compare editor with "old" version on left?
Next Topic:Unzipping Example Plug-ins requires password
Goto Forum:
  


Current Time: Fri Apr 25 01:29:55 EDT 2025

Powered by FUDForum. Page generated in 0.07951 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top