ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen McConnell" <mcconn...@dpml.net>
Subject RE: Change JAVA home for one Javac task and not the other
Date Wed, 30 Aug 2006 15:11:35 GMT
 

> -----Original Message-----
> From: Marc Farrow [mailto:marc.farrow@gmail.com] 
> Sent: Wednesday, 30 August 2006 11:10 PM
> To: Ant Users List
> Subject: 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

Personally I've found that this is insufficient.  The better option would be
to spawn a java process in a way that forces the selection of a specific JVM
but I haven't tried this and don't know if its feasible (but I'm
optimistic). Sooner or later is something I'm going to have to look in to.

Cheers, Steve.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message