[Building Sakai] Eclipse metadata files (reviving an old proposal)
Ray Davis
ray at media.berkeley.edu
Wed Apr 22 11:08:59 PDT 2009
+1 to removing them completely.
In the release notes, I'd recommend pointing to both Maven's
Eclipse-file-generating plugin:
http://maven.apache.org/plugins/maven-eclipse-plugin/
and Eclipse's Maven-wise plugin:
http://m2eclipse.codehaus.org/
The latter has greatly improved since the first time I tried it, and
it's now my preferred way to integrate the tools.
Best,
Ray
On 4/22/2009 10:45 AM, 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>
>
More information about the sakai-dev
mailing list