[Building Sakai] Eclipse metadata files (reviving an old proposal)

Cris J Holdorph holdorph at unicon.net
Wed Apr 22 10:55:57 PDT 2009


If we're going to to be consistently removing all the eclipse metadata 
files with "mvn eclipse:clean", then I think they should be removed.

One part that I used to like by having them included, is when the 
dependencies between projects referenced each other, instead of maven 
artifact jar files.  But if you do the two mvn commands you describe 
that will never be true again, so I'd rather they were just removed 
completely.

At least that's my vote.

---- Cris J H

Anthony Whyte wrote:
> Back in Sept 2008 Aaron regenerated the Eclipse metadata files in trunk 
> (.classpath, etc.) by running from the base folder:
> 
> mvn eclipse:clean
> mvn eclipse:eclipse
> 
> The said files in trunk are wildly out-of-date again so I have 
> regenerated them (see example below).  I have done the same for the 
> 2.6.x and 2.6.0 branches since each of these binds to a different kernel 
> artifact.  The metadata files now reflect the latest Kernel (K1) 
> bindings as well other dependencies that have been changed (e.g., trunk 
> commonons-io upgrade from 1.2 to 1.4).
> 
> Aaron also recommended removing these metadata files completely from 
> trunk since tools exist for generating them locally.  I'd like resurrect 
> this proposal and see if the community thinks that removing these files 
> is a good idea.  See the sakai-dev thread for more details of that 
> earlier discussion.
> 
> http://www.nabble.com/Remove-Replace-all-eclipse-files-for-2.6-release--to19690993.html#a19690993 
> 
> 
> If the vote is to stay with the status quo, I should note that I have 
> added this regeneration task to my release management duties; whenever I 
> generate a K1 release I'll refresh the Eclipse metadata files in trunk, 
> the current maintenance branch (e.g., 2.6.x) and any other branches 
> dependent on kernel bindings.
> 
> Trunk developers should perform an svn update to pick up these changes.
> 
> Cheers,
> 
> Anth
> 
> 
>  From this (trunk/.../access-impl example):
> 
> <classpath>
>   <classpathentry kind="src" path="src/bundle" 
> including="**/*.properties" excluding="**/*.java"/>
>   <classpathentry kind="src" path="src/java"/>
>   <classpathentry kind="output" path="target/classes"/>
>   <classpathentry kind="con" 
> path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
>   <classpathentry kind="var" 
> path="M2_REPO/commons-fileupload/commons-fileupload/1.1.1/commons-fileupload-1.1.1.jar"/> 
> 
>   <classpathentry kind="var" 
> path="M2_REPO/commons-io/commons-io/1.2/commons-io-1.2.jar"/>
>   <classpathentry kind="var" 
> path="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar"/> 
> 
>   <classpathentry kind="var" 
> path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/>
>   <classpathentry kind="var" 
> path="M2_REPO/logkit/logkit/1.2/logkit-1.2.jar"/>
>   <classpathentry kind="var" path="M2_REPO/oro/oro/2.0.8/oro-2.0.8.jar"/>
>   <classpathentry kind="var" 
> path="M2_REPO/org/sakaiproject/kernel/sakai-component-manager/1.0RC2-SNAPSHOT/sakai-component-manager-1.0RC2-SNAPSHOT.jar"/> 
> 
>   <classpathentry kind="var" 
> path="M2_REPO/org/sakaiproject/kernel/sakai-kernel-api/1.0RC2-SNAPSHOT/sakai-kernel-api-1.0RC2-SNAPSHOT.jar"/> 
> 
>   <classpathentry kind="var" 
> path="M2_REPO/org/sakaiproject/kernel/sakai-kernel-util/1.0RC2-SNAPSHOT/sakai-kernel-util-1.0RC2-SNAPSHOT.jar"/> 
> 
>   <classpathentry kind="src" path="/sakai-velocity-tool"/>
>   <classpathentry kind="src" path="/sakai-velocity-tool-api"/>
>   <classpathentry kind="var" 
> path="M2_REPO/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar"/>
>   <classpathentry kind="var" 
> path="M2_REPO/velocity/velocity/1.3.1/velocity-1.3.1.jar"/>
> </classpath>
> 
> 
> to this:
> 
> <classpath>
>   <classpathentry kind="src" path="src/bundle" 
> including="**/*.properties" excluding="**/*.java"/>
>   <classpathentry kind="src" path="src/java"/>
>   <classpathentry kind="output" path="target/classes"/>
>   <classpathentry kind="con" 
> path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
>   <classpathentry kind="var" 
> path="M2_REPO/commons-fileupload/commons-fileupload/1.1.1/commons-fileupload-1.1.1.jar"/> 
> 
>   <classpathentry kind="var" 
> path="M2_REPO/commons-io/commons-io/1.4/commons-io-1.4.jar"/>
>   <classpathentry kind="var" 
> path="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar"/> 
> 
>   <classpathentry kind="var" 
> path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/>
>   <classpathentry kind="var" 
> path="M2_REPO/logkit/logkit/1.2/logkit-1.2.jar"/>
>   <classpathentry kind="var" path="M2_REPO/oro/oro/2.0.8/oro-2.0.8.jar"/>
>   <classpathentry kind="var" 
> path="M2_REPO/org/sakaiproject/kernel/sakai-component-manager/1.1-SNAPSHOT/sakai-component-manager-1.1-SNAPSHOT.jar"/> 
> 
>   <classpathentry kind="var" 
> path="M2_REPO/org/sakaiproject/kernel/sakai-kernel-api/1.1-SNAPSHOT/sakai-kernel-api-1.1-SNAPSHOT.jar"/> 
> 
>   <classpathentry kind="var" 
> path="M2_REPO/org/sakaiproject/kernel/sakai-kernel-util/1.1-SNAPSHOT/sakai-kernel-util-1.1-SNAPSHOT.jar"/> 
> 
>   <classpathentry kind="src" path="/sakai-velocity-tool"/>
>   <classpathentry kind="src" path="/sakai-velocity-tool-api"/>
>   <classpathentry kind="var" 
> path="M2_REPO/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar"/>
>   <classpathentry kind="var" 
> path="M2_REPO/velocity/velocity/1.3.1/velocity-1.3.1.jar"/>
> </classpath>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
> 
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"


More information about the sakai-dev mailing list