well, the xdoclet plugin should be calling 

project.addCompileSourceRoot( outputDirectory );

in order to add the generated files to the compile phase..

mostly these are generated into target/generated-sources I believe,
that why they are blown away with the default clean targets.  I don't
see source for the xdoclet plug in either mojo or the m2 repos though
so I can't say for sure.

but yes, it is easy to do



On 7/29/05, Adam Hardy <[EMAIL PROTECTED]> wrote:
> Adam Hardy on 28/07/05 16:39, wrote:
> > (2) Even if I could get the xdoclet to run in m2, I can't figure out how 
> > to include a second source directory (containing the xdoclet generated 
> > classes). Is it just a comma-delimited list in the <sourceDirectory> 
> > attribute of the pom?
> 
> If I run xdoclet to generate some EJB code in a seperate directory (I 
> don't want it in the version control system), can I get maven to compile 
> it along with the normal code in src/main/java?
> 
> As quoted in the paragraph above, I can't work out how to get m2 to do
> that.
> 
> Or is it better to put it straight into the src/main/java tree with the 
> rest? I could always tell cvs to ignore it - although this would be 
> error prone.
> 
> Thanks
> Adam
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
--
jesse mcconnell

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

Reply via email to