Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse and Subversion
Eclipse and Subversion [message #139597] Thu, 05 February 2004 20:23 Go to next message
Eclipse UserFriend
Originally posted by: russell.thamm.dsto.defence.gov.au

Hi,

I have been using NetBeans for Java development and have just tried
Eclipse.
I have been impressed so far but I have a few issues that I can't resolve.

I use Subversion for source version control (no way I'll go back to CVS)

a) Is there any way to get eclipse to ignore .svn directories and contents?

I have added a filter to the Projects Java Build Path (Source). This stops
Eclipse for copying .svn directories to the output directory. However,
Eclipse still shows these "resources" in lots of places eg Resource
Perspective (Navigator view). Worse Eclipse wants to put these resources
into my jar files. (I also have a similar problem with .nbattrs files.)

b) How do I share my workspace/projects between machines (all Windows
machines)?

What files do I need to put under Revision Control to share my WorkSpace
and/or Projects between machines? (For MSVC, I have the Workspace (.dsw)
and Project (.dsp) files under Revision Control.)

Do I need the full contents of the WorkSpace directory (minus bin)?

thanks
Russell Thamm
Re: Eclipse and Subversion [message #139623 is a reply to message #139597] Fri, 06 February 2004 00:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jrp.thepiersols.com

Russell Thamm wrote:

> Hi,

> I have been using NetBeans for Java development and have just tried
> Eclipse.
> I have been impressed so far but I have a few issues that I can't resolve.

> I use Subversion for source version control (no way I'll go back to CVS)

I am curious why you say you will never go back to CVS ? What features
have you sold in subversion ? I haven't looked for a while, but last time
I did, I ws thinking subversion only had a small set of features and was
pretty incomplete. Please school me :>

Thanks,
Jim
Re: Eclipse and Subversion [message #139635 is a reply to message #139597] Fri, 06 February 2004 02:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: newsserver_mails.bodden.de

Once upon a time <bvuqa4$2vl$1@eclipse.org>,
Russell Thamm <russell.thamm@dsto.defence.gov.au> enriched the world with
the following:

> a) Is there any way to get eclipse to ignore .svn directories and
> contents?
Use working sets.

Eric

--
------------------------------------------------------------ -----
Eric Bodden
ICQ UIN: 12656220
Website: http://www.bodden.de
PGP key available
Re: Eclipse and Subversion [message #139689 is a reply to message #139623] Fri, 06 February 2004 04:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mlegart.dk.tiscali.com

On Fri, 6 Feb 2004 05:19:05 +0000 (UTC), Jim Piersol <jrp@thepiersols.com> wrote:

> have you sold in subversion ? I haven't looked for a while, but last time
> I did, I ws thinking subversion only had a small set of features and was
> pretty incomplete. Please school me :>

Last time you looked must have been 3 years ago then... Subversion is
very near 1.0 (release this month) and it fixes most of the annoyances
CVS has... see http://subversion.tigris.org/ for a list of features.
Re: Eclipse and Subversion [message #139700 is a reply to message #139597] Fri, 06 February 2004 05:09 Go to previous messageGo to next message
Eclipse UserFriend
On Fri, 6 Feb 2004 01:23:16 +0000 (UTC), Russell Thamm
<russell.thamm@dsto.defence.gov.au> wrote:

> Hi,
>
> I have been using NetBeans for Java development and have just tried
> Eclipse.
> I have been impressed so far but I have a few issues that I can't
> resolve.

You must be running Eclipse on Windows, right ?

> I use Subversion for source version control (no way I'll go back to CVS)
>
> a) Is there any way to get eclipse to ignore .svn directories and
> contents?

CVS folders are ignred by Eclipse after the project has been checked out
by Eclipse.
Otherwise Eclipse just treats them as normal folder.
I have no experience with subversion, but assume for SVN folder the same
logic applies.

>
> I have added a filter to the Projects Java Build Path (Source). This
> stops
> Eclipse for copying .svn directories to the output directory. However,
> Eclipse still shows these "resources" in lots of places eg Resource
> Perspective (Navigator view). Worse Eclipse wants to put these resources
> into my jar files. (I also have a similar problem with .nbattrs files.)

This problem is simple to resolve.
Create and Ant script witha Jar task.
In the jar taks you specify a fileset of the files you want to put in the
jar.

> b) How do I share my workspace/projects between machines (all Windows
> machines)?
>
> What files do I need to put under Revision Control to share my WorkSpace
> and/or Projects between machines? (For MSVC, I have the Workspace (.dsw)
> and Project (.dsp) files under Revision Control.)
>
> Do I need the full contents of the WorkSpace directory (minus bin)?
>
> thanks
> Russell Thamm


I have a simple but effective method to share a project between Windows
and Linux machines: CVS !
Just check your project in before you switch to the other machine and then
check it out on the other box.
Do not share a workspace folder via networking because Eclipse is not
designed to handle shared workspaces.
Also you will definitely run into problems when sharing workspaces between
versions of Eclipse.
I happily run many different version of Eclipse on 1 box by assigning
separate workspace to each Eclipese version.
You use the -data switch during Eclipse startup to set the workspace.
These above rules are tried and proven.

One more hint.
It sometimes happens for some unknown reason that a workspace gets
corrupted.
You get strange messages like Eclipse cannot sae the workspace, or that
Eclipse cannot find InternalAnt.
Having a backup available of .metadata will save you valuable time
restoring the workspace.

--
John Zoetebier
Web site: http://www.transparent.co.nz
Re: Eclipse and Subversion [message #139722 is a reply to message #139597] Fri, 06 February 2004 08:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: no.one.no.place

Russell Thamm wrote:
> Hi,
>
> I have been using NetBeans for Java development and have just tried
> Eclipse.
> I have been impressed so far but I have a few issues that I can't resolve.
>
> I use Subversion for source version control (no way I'll go back to CVS)
>
> a) Is there any way to get eclipse to ignore .svn directories and contents?

You can try the SubClipse (http://subclipse.tigris.org/) plugin.
I've not tested it since I don't use Subversion but from the info on the
site you should get the same work flow as the integrated CVS client.

--
Alessandro Falappa
Re: Eclipse and Subversion [message #139732 is a reply to message #139689] Fri, 06 February 2004 09:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jrp.thepiersols.com

Michael Legart wrote:

> On Fri, 6 Feb 2004 05:19:05 +0000 (UTC), Jim Piersol <jrp@thepiersols.com>
wrote:

> > have you sold in subversion ? I haven't looked for a while, but last time
> > I did, I ws thinking subversion only had a small set of features and was
> > pretty incomplete. Please school me :>

> Last time you looked must have been 3 years ago then... Subversion is
> very near 1.0 (release this month) and it fixes most of the annoyances
> CVS has... see http://subversion.tigris.org/ for a list of features.


OK, I just had another look. It does appear to be much more complete then
last time I looked. I agree, it has some of the features that I have
always longed for in cvs. Too bad the effort couldn't of been used to
actually improve cvs versus re-inventing the wheel. CVS is so embedded in
the open-source community...and now it is so convienient to use from
IntelliJ and Eclipse that it isn't even funny.

Oh well, maybe someday I will have a need to start a new source control
system, and maybe I will choose subversion. I can't get too excited about
replacing/converting from cvs just yet :>)

Thanks for the info though, that is just what I was after.
Re: Eclipse and Subversion [message #139742 is a reply to message #139732] Fri, 06 February 2004 10:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mlegart.dk.tiscali.com

On Fri, 6 Feb 2004 14:12:50 +0000 (UTC), Jim Piersol <jrp@thepiersols.com> wrote:

> always longed for in cvs. Too bad the effort couldn't of been used to
> actually improve cvs versus re-inventing the wheel. CVS is so embedded in

The Subversion project was started by CVS developers because CVS had become
a nightmare to maintain (well, that was one of the reasons).

Switching from CVS to Subversion is also very easy I think... Things
basically work as you would expect. 'svn co', 'svn update', 'svn commit'
etc.

> the open-source community...and now it is so convienient to use from
> IntelliJ and Eclipse that it isn't even funny.

The same will happen for Subversion. The Team API in Eclipse is being refactored
so Subversion can be integrated just as well as CVS. And I think the current
integration using the Subclipse plugin is pretty good!
Re: Eclipse and Subversion [message #139982 is a reply to message #139700] Sun, 08 February 2004 17:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: russell.thamm.dsto.defence.gov.au

John Zoetebier wrote:

> On Fri, 6 Feb 2004 01:23:16 +0000 (UTC), Russell Thamm
> <russell.thamm@dsto.defence.gov.au> wrote:

> > b) How do I share my workspace/projects between machines (all Windows
> > machines)?
> >
> > What files do I need to put under Revision Control to share my WorkSpace
> > and/or Projects between machines? (For MSVC, I have the Workspace (.dsw)
> > and Project (.dsp) files under Revision Control.)
> >
> > Do I need the full contents of the WorkSpace directory (minus bin)?
> >
> > thanks
> > Russell Thamm


> I have a simple but effective method to share a project between Windows
> and Linux machines: CVS !

I have a similar means, subversion. My question still is:

what files ?

> Just check your project in before you switch to the other machine and then
> check it out on the other box.

Can you tell me what project/workspace files CVS puts in the repository
when you checkin a project?

> Do not share a workspace folder via networking because Eclipse is not
> designed to handle shared workspaces.
> Also you will definitely run into problems when sharing workspaces between
> versions of Eclipse.
> I happily run many different version of Eclipse on 1 box by assigning
> separate workspace to each Eclipese version.
> You use the -data switch during Eclipse startup to set the workspace.
> These above rules are tried and proven.

> One more hint.
> It sometimes happens for some unknown reason that a workspace gets
> corrupted.
> You get strange messages like Eclipse cannot sae the workspace, or that
> Eclipse cannot find InternalAnt.
> Having a backup available of .metadata will save you valuable time
> restoring the workspace.

Presumably then it would be useful to put .metadata under revision control.

thanks
Russell Thamm
Re: Eclipse and Subversion [message #139999 is a reply to message #139982] Sun, 08 February 2004 18:09 Go to previous messageGo to next message
Eclipse UserFriend
Russell Thamm wrote:
> I have a similar means, subversion. My question still is:
> what files ?

You'll need to check in ".classpath" and ".project" in the project's top-level directory. If you have any external tools builders, you can also check in the contents of ".externalToolsBuilders" (or something like that). In addition, you can save your launch configurations to disk by making them "shared" configurations and check those in too.

All of this assumes that everyone who checks the project out onto their local machine gives it the same name. Many of these files have the project name spelled out explicitly inside them, so they won't work with a different name. A week or two ago I filed a feature request to use some sort of variable substitution instead; feel free to go vote or cc yourself on the feature request. It's https://bugs.eclipse.org/bugs/show_bug.cgi?id=51148

Laura
Re: Eclipse and Subversion [message #140171 is a reply to message #139732] Mon, 09 February 2004 08:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: arnout.standaert.n-o-s-p-a-m.cit.kuleuven.ac.be

jrp@thepiersols.com (Jim Piersol) wrote:

> Michael Legart wrote:
>> Jim Piersol wrote:
>
>> > have you sold in subversion ? I haven't looked for a while,
>> > but last time I did, I ws thinking subversion only had a
>> > small set of features and was pretty incomplete.
>
>> Last time you looked must have been 3 years ago then...
>> Subversion is very near 1.0 (release this month) and it fixes
>> most of the annoyances CVS has...
>
> OK, I just had another look. It does appear to be much more
> complete then last time I looked. I agree, it has some of the
> features that I have always longed for in cvs. Too bad the
> effort couldn't of been used to actually improve cvs versus
> re-inventing the wheel. CVS is so embedded in the open-source
> community...and now it is so convienient to use from IntelliJ
> and Eclipse that it isn't even funny.

You might want to take a look at

http://www.red-bean.com/sussman/svn-anti-fud.html

It discusses a lot of the reasoning behind several aspects of the
Subversion project and strategy.

I recently moved all my projects to Subversion, because of the
extra features, added flexibility and because it feels a lot nicer
and straightforward than CVS. A nice advantage is that you don't
lose all your CVS history, they provide a Python script to convert
your CVS repositories into Subversion ones.

Regards,
Wald
Shared Launch Configs (was: Eclipse and Subversion) [message #141737 is a reply to message #139999] Fri, 13 February 2004 07:56 Go to previous message
Eclipse UserFriend
Laura Werner wrote:
> Russell Thamm wrote:
>
>> I have a similar means, subversion. My question still is:
>> what files ?
>
>
> You'll need to check in ".classpath" and ".project" in the project's
> top-level directory. If you have any external tools builders, you can
> also check in the contents of ".externalToolsBuilders" (or something
> like that). In addition, you can save your launch configurations to
> disk by making them "shared" configurations and check those in too.

Just a few minutes ago I tried that :). Unfortunately Eclipse defaults
the runtime workspace location to an absolute path. Is there any way to
make that relative to the "normal" workspace? Are there variables to
accomplish that? I tried ${workspace_loc:/../runtime-workspace} but
that created a directory with exactly that name, so no variable
substitution took place.

TIA, Thomas.

--
Thomas Maier <Thomas.Maier@uni-kassel.de>
Previous Topic:Drag and Drop Java Resources
Next Topic:Goto particular column
Goto Forum:
  


Current Time: Sun Jul 27 14:01:27 EDT 2025

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

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

Back to the top