Thanks for the response. I went ahead and implemented the second option while I was waiting to hear back on this. It works like a champ.
Thanks again Kevin On 8/20/08, Jörg Schaible <[EMAIL PROTECTED]> wrote: > Hi Kevin, > > Kevin Kingsbury wrote: > >> Thanks Jorg for the pointer to using multiple executions of the compiler. >> I tried setting that up >> and I see it try to run, but the it says the classes are already up to >> date. I am assuming that this >> is because it is still looking at the same outputDirectory. >> >> How would I configure a different output directory for the execution that >> I >> created? I dont see any >> compiler options that will allow this and setting the <outputDirectory> >> option seems to happen at the >> project level. So it does not appear possible to set a second output >> directory that I could then >> jar up. Searching in the forums seem to indicate setting a second output >> directory is not possible >> either. >> >> Any suggestions? > > It seems you're right. We use multiple executions but we're bundling all > classes in the end in one jar (only the JDK 5 specific code is compiled > with target JDK 5). I silently assumed, that it is possible to set > different output paths. Setting it using the compiler options directly will > not help, since Maven will have a look at the wrong directory to decide > which classes have to be compiled. > > Then all I can propose is my second alternative: > >>> An alternative is to use a separate project for the 1.4 version. Simply >>> create an attached source jar when creating the 1.5 version and extract >>> and compile this sources in the 1.4 project. > > - Jörg > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Sent from Gmail for mobile | mobile.google.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
