On Thu, 2004-01-08 at 17:16, Steve Garcia wrote: > > > What about specifying <sourceDirectory> as a fileset? This > > would add > > > a lot more work to retrofit plugins but it really would give > > > developers good flexibility. > > > > > > <sourceDirectory> > > > <include name="dir1" /> > > > <include name="dir2" /> > > > <include name="dir3" /> > > > </sourceDirectory> > > > > Absolutely never going to happen. With that you've just made > > everything to do with sources an order of magnitude more > > difficult which means maven internals and all the plugins. > > Well...I'm not surprised to hear that. > > I think <generatedSourceDirectory> sounds OK but would like to hear from > more people who use extensively use code generation in their projects. I'm > sure Maven will hear stories about how that strategy is not compatible for > various reasons.
> 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. > > -- > > 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]
