Hello Sebastien, Marc, you have to fork the <javac/> in this case.
so <javac fork="true" executable="complete path to javac.exe version 1.3" .../> Regards, Antoine -------- Original-Nachricht -------- Datum: Wed, 30 Aug 2006 09:39:43 -0400 Von: "Marc Farrow" <[EMAIL PROTECTED]> An: "Ant Users List" <user@ant.apache.org> Betreff: Re: Change JAVA home for one Javac task and not the other > Can't you just specify the source level when you call the javac task? The > same as > > Something like > javac -source 1.3 -target 1.3 com.mycompany.MyClass.java > > > On 8/30/06, Noel Sebastien (BIL) <[EMAIL PROTECTED]> wrote: > > > > Hello, > > I have one build.xml, with two Javac tasks (amongt several other ones). > > The first javac task uses the default java.home (which is our JDK 1.4.1) > > => works fine > > The second javac task should use another java.home (JDK 1.3.1 for > example) > > => but how do change the javac path ? Something like sysproperty or ?? > > Please do not answer with the "target" attribute of javac, it is not my > > purpose. I really want to point to another javac executable. > > Thank you > > > > > - Sébastien Noel - --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]