Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > question on eclipse and source control

Reply
Thread Tools

question on eclipse and source control

 
 
Christopher Corbell
Guest
Posts: n/a
 
      01-30-2007
Just curious since there was a discussion today on my team...

If you're using eclipse on a project do you check-in your project
files to source control for everyone to use? (The .classpath
and .project files, that is). Or do engineers just set up their own
local eclipse projects which are never checked-in? What's the more
common approach?

TIA,
Chris

 
Reply With Quote
 
 
 
 
Corona4456
Guest
Posts: n/a
 
      01-30-2007
On Jan 30, 12:09 pm, "Christopher Corbell" <chriscorb...@gmail.com>
wrote:
> Just curious since there was a discussion today on my team...
>
> If you're using eclipse on a project do you check-in your project
> files to source control for everyone to use? (The .classpath
> and .project files, that is). Or do engineers just set up their own
> local eclipse projects which are never checked-in? What's the more
> common approach?
>
> TIA,
> Chris


IMO it would depend on whether there is a consensus on each team
member's configuration. More importantly using the same IDE is a good
reason to add the .classpath and .project files. This will help when
adding libraries and what not to your project. That way others don't
have to worry about that, although you can just as easily add it in
Eclipse . Right now I have a project in version control with those
files included and I haven't really run across a problem. So whether
you put it in version control or not will not really affect you or
your team all that much. So basically it's just a preference if you
ask me.

 
Reply With Quote
 
 
 
 
Jason Cavett
Guest
Posts: n/a
 
      01-30-2007
On Jan 30, 2:09 pm, "Christopher Corbell" <chriscorb...@gmail.com>
wrote:
> Just curious since there was a discussion today on my team...
>
> If you're using eclipse on a project do you check-in your project
> files to source control for everyone to use? (The .classpath
> and .project files, that is). Or do engineers just set up their own
> local eclipse projects which are never checked-in? What's the more
> common approach?
>
> TIA,
> Chris


Since my teams have always used the same IDE (Eclipse), I always add
the .project and .classpath files to source control. There are some
issues that may need to be worked out (AKA - don't add C:\your\local
\directory\whatever.jar to the classpath - use a variable so it is the
same across all Eclipse configurations) but generally it works out
pretty well.

 
Reply With Quote
 
Daniel Dyer
Guest
Posts: n/a
 
      01-30-2007
On Tue, 30 Jan 2007 19:09:22 -0000, Christopher Corbell
<> wrote:

> Just curious since there was a discussion today on my team...
>
> If you're using eclipse on a project do you check-in your project
> files to source control for everyone to use? (The .classpath
> and .project files, that is). Or do engineers just set up their own
> local eclipse projects which are never checked-in? What's the more
> common approach?


I don't use Eclipse, but the same issue is relevant to other IDEs. I used
to advocate excluding all IDE configuration from source control (with
ignore patterns set to avoid accidental addition) and leaving it to
individual developers' preferences. The reasoning behind this is that
they are often using different IDEs, usually have different personal
preferences, and the IDE configuration is largely incidental since
everybody must use the Ant build.xml for building (allowing different team
members to use different tools/configurations for builds is
counter-productive).

However, I'm now favouring maybe adding at least some of the configuration
files to source control.

While we do have Eclipse users in the company, all of the Java developers
on my current project team use IntelliJ IDEA. IDEA uses three files for
configuration - .ipr is the project file, .iml is the module file
(typically more than one of these) and .iws is the workspace file. I have
added the .ipr and .iml files to Subversion and excluded the .iws file.
This gives us shared configuration for paths, dependencies, etc. but
leaves out developer-specific stuff like debug configurations and view
settings.

IDEA is flexible as to where the configuration files reside, so in our
case these shared ones are tucked away in a configuration directory in the
project repository for team members to use if they wish. This means they
won't clash with files in the project root if the developer chooses to use
their own configuration files. A default configuration for NetBeans could
easily be added to this configuration directory if needed and, assuming
Eclipse is not too fussy about the location of its config files, you could
do the same for Eclipse.

The advantage of using the shared files is that you get the benefit of any
reconfigurations that other people do (for example, when a library
dependency changes). Another benefit is that if a new developer joins the
team, they can get started straight away without having to set everything
up for themselves.

Dan.

--
Daniel Dyer
https://watchmaker.dev.java.net - Evolutionary Algorithm Framework for Java
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
off topic: 2 videos on source control and open source development Aaron Watters Python 0 03-08-2008 10:13 PM
Eclipse and CVS, Eclipse wipes out CVS directories xyzzy12@hotmail.com Java 1 08-31-2007 10:19 AM
Eclipse question - using class files in a project with out source .java keperry Java 3 04-27-2006 02:48 PM
Adding a web application project to source control (Visual Source Safe) ~~~ .NET Ed ~~~ ASP .Net 1 02-26-2005 02:20 PM
Source control and versions of third party source Marcus Leon Java 5 02-03-2005 03:37 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57