No takers? I promise I'll stop bugging if someone at least says 'go away'.

--
James Mitchell




On Apr 26, 2006, at 12:39 AM, James Mitchell wrote:

I have modified the Maven 2 Eclipse plugin to accept a configuration option that will write an additional attribute to the classpathentry for src types.

If this is of interest to you guys, let me know and I'll add a Jira ticket and attach a patch (with test).

For example, here's the first couple of lines of the .classpath for maven-eclipse-plugin itself:

This is before my patch...

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
        <classpathentry kind="src" path="src/main/java"/>
        <classpathentry kind="src" path="src/main/resources"/>
        <classpathentry kind="src" path="src/test/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
...
...


I run:
$ mvn -DsrcExclusions=**/.svn/** eclipse:eclipse


...and after

<classpath>
<classpathentry excluding="**/.svn/**" kind="src" path="src/main/ java"/> <classpathentry excluding="**/.svn/**" kind="src" path="src/main/ resources"/> <classpathentry excluding="**/.svn/**" kind="src" path="src/test/ java" output="target/test-classes"/>
  <classpathentry kind="output" path="target/classes"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
...
...

So, while this isn't a cure for cancer or anything, it beats having to go in and do this all by hand, either visually or vi-ually ;), especially when regenerating the project files as the project I follow move along.

Thanks.



--
James Mitchell





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to