On Fri, 2003-03-28 at 20:57, Mark McBride wrote:
> As for the multiple source:
> For moving the multiple source directories we've used a jelly script that 
> copies the mulitple src with the pre-goal:prepare-filesystem goal. The 
> problem I'm having is when I run the eclipse:generate-project I can not 
> specify multiple source directories that I've set up in eclipse. We have 
> one source folder for our jdeveloper/bc4j work and one for our eclipse 
> workspace. I'd like to specify that I have a src located at "src/java" and 
> "src/jdev". This would then add the following entries to the .classpath:
>      <classpathentry kind="src" path="src/java"/>
>      <classpathentry kind="src" path="src/jdev"/>
> I hope that makes sense.

Ahh; see what you mean. I don't think it would be that difficult to add
support for that kind of thing, but it's not there now. You'd need to
solve a couple of problems:
     1. You need a standard way to represent multiple Java source trees
        in the POM. At the moment the paths to the source trees are
        encoded in the jelly script, so aren't easily available to any
        plugin. A simple solution that you could start with would be to
        put them in <properties> elements in the POM, but there probably
        ought to be support for this in the POM itself (IMHO).
     2. You'd then hack the eclipse plugin slightly to iterate over the
        source trees and add appropriate classpathentry elements.
        Shouldn't be too difficult.

-Mark.


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

Reply via email to