[EMAIL PROTECTED] wrote:
+1 to svn:ignore
Thanks Graig and the others for agreeing on this and I will proceed doing this
shortly.
I'd also like to see .classpath in the Pluto root and would not object to
analagous files for IDEA and Netbeans IDEs. I cannot get the maven 2
eclipse plugin to create a single .classpath in my Eclipse project's root
dir. I have to run 'mvn eclipse:eclipse' in the root dir, and then in all
the module subdirs and then manually combine the resulting .classpath
entries into the root one. That is a pain.
/Craig
Well, that is not how you are supposed to do it or use Eclipse in my view.
Although Eclipse still doesn't support nested projects (see long standing issue:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=35973
and please cast your vote), but there is a simple "trick" to handle maven-2
kind nested projects in Eclipse (3.2+ AFAIK).
Note: for this to work I had to switch from the subclipse plugin to the
subversive plugin:
http://www.polarion.org/index.php?page=overview&project=subversive
But as subversive actually is a very good svn plugin and its core component now
even an official Eclipse project, I never had a need to look back.
What I normally do is the following:
- Check out the root of the project using Eclipse and call it
<project-name>-trunk, so pluto-trunk)
This will create a default, non-java .project Eclipse project file and thus
also without .classpath.
- Then run mvn eclipse:eclipse to generate the Eclipse .project and .classpath
files
- now comes the trick:
- while having Eclipse running, delete its auto generated .project file from
the file system
and don't touch or refresh your trunk project while doing the following step
- open the File..., Import..., Existing Projects into Workspace dialog
- select as root directory for import your checked out project root folder
and import the now displayed nested projects
- press finish
- Eclipse will automatically recreate the deleted ,project file for your
project trunk project
Now you have both the full project tree (under project <projectname>-trunk) as
well as the all the nested java projects and you are ready to go.
As this works quite neatly now with Eclipse (3.2+) I honestly don't think we
should check in hand created (or one time generated) .classpath files
as these are a pain to keep properly in sync, especially when using nested
projects.
Regards,
Ate
Ate Douma
<[EMAIL PROTECTED]>
To
01/24/2008 11:53 [email protected]
AM cc
Subject
Please respond to svn:ignore Eclipse metadata files
[EMAIL PROTECTED]
.apache.org
As I'm primarily use Eclipse for Java development, I'd like to add
svn:ignore properties to Pluto trunk for all the Eclipse metadata generated
by both Eclipse
(plugins) and the maven eclipse plugin.
If nobody objects, I intend to do so later this evening or sometime
tomorrow.
Regards,
Ate