Here's one way that I include multiple directories (in maven.xml):

 
<!--========================================================================
====
     +  Include tool and systemtest directories when compiling tests
 
+===========================================================================
-->
    <preGoal name="test:compile">
        <ant:path id="tool.src.dir" location="${basedir}/tool/src"/>
        <ant:path id="systemtest.src.dir"
location="${basedir}/systemtest/src"/>
        <maven:addPath id="maven.test.compile.src.set"
refid="tool.src.dir"/>
        <maven:addPath id="maven.test.compile.src.set"
refid="systemtest.src.dir"/>
    </preGoal>


-Dave

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 24, 2004 9:40 AM
> To: [EMAIL PROTECTED]
> Subject: How do I include multiple java source directories in Maven?
> 
> 
> I am using XDoclet with Maven and when XDoclet
> generates additional java source files it puts those
> in a separate directory.  How do I make Maven use
> multiple source directories for compilation using the
> "java:compile" goal?
> 
> Thanks.
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail SpamGuard - Read only the mail you want.
> http://antispam.yahoo.com/tools
> 
> ---------------------------------------------------------------------
> 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