On Thu, 2002-09-19 at 09:41, Rafal Krzewski wrote: > Jason van Zyl wrote: > >
> I've read dirver.jelly and plugins/java-.../plugin.jelly, so I know how > <sourceModifications> work. I just think that it is not flexible enough > to help me. > In the common scenario, people want to disable compilation of this or > that class if a jar it depends on is not available in the build > environment. <sM> are cool for that. But I'm facing another situation: > I have classes that implement a set of interfaces that was incompatibly > modified between JDK versions. I might have created two versions of each > class, use conditional exclusion for them (notice that <sM> would not > help me, unless I found a class that is present in JDK1.3 and not > present in JDK1.4!) and then, at runtime check the > java.specification.version property and instantiate the right classes. > This is quite a lot of fuss. My solution with split source trees > eliminates the need for runtime implementaiton switching. You may want to look at the jakarta-ojb repository then. I added the codeswitcher plugin which is a preprocessor and it's used in the OJB Maven build to select certain options in the sources for JDK 1.2, 1,3 and 1.4. There are some logging and JDBC 3.0 options that are turned on or off. For the codeswitcher plugin you basically define which switches you want turned on/off and the sources will be processed accordingly. > Anyway thanks. Maybe I shouldn't be wasting your time writing about a > problem that I have already solved. I'm just excited with Maven, so > I wanted to write *something*. Maven is just so cool that I haven't any > serious problems yet :-) > > Rafal > > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[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: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
