ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <anto...@gmx.de>
Subject Re: Change JAVA home for one Javac task and not the other
Date Wed, 30 Aug 2006 14:03:58 GMT
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" <marc.farrow@gmail.com>
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) <Sebastien.Noel@dexia-bil.com> 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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message