This is what I did, thanks a lot -:))> Date: Thu, 31 May 2007 20:44:01 -0500> From: [EMAIL PROTECTED]> To: [email protected]> Subject: Re: Building files with different jdk versions> > You probably should separate your project into different projects each> containing the set of files you want, allowing each one to use it's own> compiler:> > http://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-using-different-jdk.html> > Or if you can get away with it (which most people can), just using the> higher version compiler and setting the lower target/source for the lower> projects (eg, use javac 1.5 always, but set target as 1.4 when necessary).> > http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html> > However if you reeeeaallly need to keep the files in a single project, put> the set of "some files" you described into a separate directory - and> include that directory using this:> > http://mojo.codehaus.org/build-helper-maven-plugin/howto.html> > Called under a profile:> > http://sonatype.com/book/profiles.html> > Isn't diverging from the standard fun? ;-P> > Eric> > On 5/31/07, Piotr Skawinski <[EMAIL PROTECTED]> wrote:> >> >> > Hi,I need to build my project with the jdk1.5, but some of the> > files also need to be build with jdk1.4. Is it possible in a single> > pom.xml to specify the jdk version to be used to build the whole> > project and at the same time to specify other jdk version to be used to> > build only some files? If not is then there any other solution for it?> > Regarsds, Piotr> > _________________________________________________________________> > Invite your mail contacts to join your friends list with Windows Live> > Spaces. It's easy!> >> > http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us> > > -- > Eric Redmond> http://www.sonatype.com _________________________________________________________________ With Windows Live Hotmail, you can personalize your inbox with your favorite color. www.windowslive-hotmail.com/learnmore/personalize.html?locale=en-us&ocid=TXT_TAGLM_HMWL_reten_addcolor_0607
