> On Thu, 2004-01-08 at 17:16, Steve Garcia wrote: [ snip ] > > > Would the java plugin compile <sourceDirectory> first then > > <generatesSourceDirectory> second? Well it would > presumably occur at > > the same time. Other plugins that require access to a source > > directory would need to be tweaked to accept two directories. For > > some like java:compile and I think javadoc I think that's OK. > > There is only one <sourceDirectory/> but what happens > internally is that we track a source directory set which > takes into account additional sources primarily resulting > from generation. So if you look at the Antlr plugin is > generates the sources before java:compile and then adds the > sources it generates to the internal source directory set. > Plugins have access to this source directory set. > > > What each individual plugin could do though is make their > own private > > Ant fileset from <sourceDirectory> and > <generatedSourceDirectory> if > > they are unable to process multiple source directories. This would > > never be visible to the core Maven model or to other > plugins for that > > matter. > > Plugins that operate on sources should typically deal with > the internal source set which is currently the Ant reference > of maven.compile.src.set. So you could generate some sources > using Antlr and then run xdoclet on the maven.compile.src.set > and it would operate on the all the sources, static and generated.
Fantastic. Then it sounds like adding <generatedSourceDirectory> to the POM should be a fairly easy task. This would amount to adding that directory to the maven.compile.src.set Ant reference? I think this sounds completely reasonable and while it may not help out every project that extensively uses code generation it would help many projects. The specific semantics I'm still in the blue (re: what John Casey wrote previous in this thread where Maven would only compile <sourceDirectory> if <generatedSourceDirectory> didn't exist. Maybe I didn't understand what he wrote and I'll reread his emails again. > > > -- > > > jvz. > > > > > > Jason van Zyl > > > [EMAIL PROTECTED] > > > http://tambora.zenplex.org > > > > > > In short, man creates for himself a new religion of a > > > rational and technical order to justify his work and to be > > > justified in it. > > > > > > -- Jacques Ellul, The Technological Society > > > > > > > > > > -------------------------------------------------------------------- > > > - > > > 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] > -- > jvz. > > Jason van Zyl > [EMAIL PROTECTED] > http://tambora.zenplex.org > > In short, man creates for himself a new religion of a > rational and technical order to justify his work and to be > justified in it. > > -- Jacques Ellul, The Technological Society > > > --------------------------------------------------------------------- > 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]
