<java jvm fork> But you could also use Java1.5 for your 1.5 AND 1.4 projects. When compiling your 1.4 you set source+target="1.4"
Jan >-----Ursprüngliche Nachricht----- >Von: thomaslarsson [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 16. März 2007 14:18 >An: [email protected] >Betreff: specifying jvm for running ant tasks > > >Hello everyone, > >I have an ant task that calls a set of ant tasks in order to >build a set of >projects in the correct order. > > >Now I added a project that needs to be run with java 1.5, and >I would like >to be able to configure the build so that only this new target >is run with >1.5, and to old tasks with 1.4. > > >Is there any way to do this? Perhaps without using the exec >task or writing >a custom task? Here is an outline of my ant task. > > ><target name="build-all"> > > <echo message="building first project"/> > > > <ant dir="some.dir" file="build.xml" >target="dist"/> > > > > <echo message="building second project"/> > > > <ant dir="other.dir" file="build.xml" >target="dist"/> > ></target> > >Best Regards > >-Thomas >-- >View this message in context: >http://www.nabble.com/specifying-jvm-for-running-ant-tasks-tf34 >14450.html#a9514299 >Sent from the Ant - Users mailing list archive at Nabble.com. > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
