ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Mixing compilers
Date Thu, 08 Aug 2002 06:03:05 GMT
On Wed, 7 Aug 2002, Ed Mack <edm@wrq.com> wrote:

> I am forking because I was under the impression that I could use a
> different JDK than was being used to run Ant this way.

And so you can, you must use the executable attribute, see the last
example in <javac>'s doc
<http://jakarta.apache.org/ant/manual/CoreTasks/javac.html>.

In your case it would be something like (I assume you are on Unix,
otherwise the executable's name may need a .exe or something):

 <javac
      fork="yes"
      srcdir="${preproc_dir}"
      destdir="${obj_dir}"
      executable="${tools_dir}/jdk-1.1/bin/javac"
      classpath="${preproc_dir}:${1.1-jars}"
 />

      includejavaruntime="false"
      includeantruntime="false"

may be needed as additional attributes, if so let us know so we can
patch the docs for hints.

Stefan

--
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