ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From detlef.bren...@canoo.com
Subject Re: javac with different Java compilers.
Date Tue, 18 Dec 2001 18:54:13 GMT
no I dont think so as it only generates class files for major java versions.I 
need to use compilers with minor releases too / such as 1.2.2_01 or 1.3.0_02


detlef
Quoting Erik Hatcher <jakarta-ant@ehatchersolutions.com>:

> Would <javac>'s 'target' attribute solve this problem?
> 
> 
> ----- Original Message -----
> From: <detlef.brendle@canoo.com>
> To: "Ant Developers List" <ant-dev@jakarta.apache.org>
> Sent: Tuesday, December 18, 2001 4:16 AM
> Subject: javac with different Java compilers.
> 
> 
> > hi all,
> >
> > I got a bit stuck during a proces automation and would appreciate your
> help.
> > heres the picture.
> >
> > I run ant todo all the java compile and many other things as well.
> > but the java compile is what worries me the most right now.
> >
> > I run <javac ..> with noFork (in the same VM than the ant process)
> > I do that mainly because of some classpath calculations.
> > I now need to compile various java code with a different JavaVM
> (1.2.2)
> > So I thought I will set JAVA_HOME to the right directory where my
> java1.2.2 is
> > installed and run the script again.
> > now the trouble starts -
> > a. since IM in the same VM I cant change my javac compiler during
> runtime.
> > b. if I run it externally it still wont use the correct JAVA_HOME
> environment.
> >
> >
> > the idea was now to use <exec..> somehow to compile with different
> javac
> > locations. but I also skipped this as I dont think thats the way to
> solve
> this.
> >
> > Has anybody got a solution for this problem ?
> >
> > regards,
> > detlef
> >
> > --
> > To unsubscribe, e-mail:  
> <mailto:ant-dev-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> <mailto:ant-dev-help@jakarta.apache.org>
> >
> >
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:ant-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:ant-dev-help@jakarta.apache.org>
> 
> 

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message