ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff <etrick.j...@ensco.com>
Subject Re: JBuilder 7, Ant and JDK 1.4.1
Date Mon, 28 Oct 2002 16:17:44 GMT
>
>
>Does anyone know how to set another JDK to compile when using Ant in
>JBuilder 7?
>
>  
>

setting JAVA_HOME will work only if you kick off your builds from the 
command-line.
When running within JBuilder the JAVA_HOME is reset to the same one 
JBuilder uses to run.
To get around this problem I used the new (Ant1.5) ability to set the 
compiler in the javac task..

  <javac srcdir="${src}"
         destdir="${build}"
         fork="yes"
         executable="/opt/java/jdk1.1/bin/javac"
         compiler="javac1.1"
  />

Not as nice as it could be, but it works.






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


Mime
View raw message