Nevermind, I figured it out.  I used <maven:addPath/>
instead of <addPath/> to which puts it in the correct
context I presume.

Thanks.

--- "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> OS:  Windows 2000
> Maven:  1.0-rc1
> 
> I have tried the <addPath/> task inside maven.xml,
> but
> it does not work.  What am I doing wrong?
> 
> ********************************************
> maven.xml:
> 
>    <preGoal name="java:compile">
>      <path 
>        id="src.java.compile.src.set" 
>        location="${src.java.dir}" />
>      <addPath 
>        id="maven.compile.src.set" 
>        refid="src.java.compile.src.set" />
> 
>      <path 
>        id="gen-src.java.compile.src.set" 
>        location="${target.gen_src.dir}" />
>      <addPath 
>        id="maven.compile.src.set" 
>        refid="gen-src.java.compile.src.set" />
> 
>      <attainGoal name="xdoclet-ejbdoclet"/>
>      <attainGoal name="xdoclet-webdoclet"/>
>    </preGoal>
> 
> ********************************************
> project.properties:
> 
> src.java.dir=src/java
> target.gen_src.dir=target/gen-src
> 
> Thanks.
> 
> 
> --- "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
> > Thanks everyone for their help.  Although, it sure
> > would be nice if we could simply do something like
> > the
> > following within the project.xml file:
> > 
> > <build>
> >   <sourceDirectories>
> >     <sourceDirectory>dir1</sourceDirectory>
> >     <sourceDirectory>dir2</sourceDirectory>
> >   </sourceDirectories>
> > </build>
> > 
> > Also, where can I find information on Maven tasks
> > like
> > "<maven:addPath/>"?  I have not seen any
> > documentation
> > about these tasks available to maven.
> > 
> > Thanks.
> > 
> > --- Johan Andries <[EMAIL PROTECTED]> wrote:
> > > Hello,
> > > 
> > > AFAIK the only solution to specify multiple
> source
> > > dirs which is available
> > > at the moment can be found at:
> > >
> >
>
http://wiki.codehaus.org/maven/FrequentlyAskedQuestions#head-7545bdc005f855e
> > > 6b2009275529746f011a9ebcd.
> > > 
> > > Also have a peek at
> > >
> >
>
http://wiki.codehaus.org/maven/CreatingJ2eeApplications.
> > > 
> > > regards,
> > > Johan
> > > 
> > > 
> > > 
> > > ----- Original Message -----
> > > From: "[EMAIL PROTECTED]"
> > > <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, February 24, 2004 4:39 PM
> > > 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]
> > > 
> > 
> > 
> > __________________________________
> > 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]
> > 
> 
> 
> __________________________________
> 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]
> 


__________________________________
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]

Reply via email to