ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc Farrow" <marc.far...@gmail.com>
Subject Re: Change JAVA home for one Javac task and not the other
Date Wed, 30 Aug 2006 13:39:43 GMT
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 -
> > DEXIA - Banque Internationale à Luxembourg
> >
> >
>
> ---------------------
> An electronic message is not binding on its sender.
> Any message referring to a binding engagement must be confirmed in writing
> and duly signed.
> ---------------------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>


-- 
Marc Farrow
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message