You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Paul Arzul <pa...@exinet.co.za> on 2000/09/10 18:11:29 UTC

which compiler is ant using?

the ant user manual says i can specify which compiler to use
with the build.compiler property, yet the property is
not set by default, so i am not sure which compiler it 
thinks it is using:

---8<---
<?xml version="1.0"?>

<project name="Test" default="jdk" basedir=".">
  <target name="jdk">
    <echo message="${build.compiler}" />
  </target>
</project>
--->8---

returns:
---8<---
Buildfile: test.xml

jdk:
${build.compiler}

BUILD SUCCESSFUL

Total time: 0 seconds
--->8---

for the moment i am having to trust the documentation that
classic is the default for jdk 1.1/1.2, and modern for 1.3.

since i have and require both jdk 1.2 and 1.3, the issue 
arose as to which it was going to use.

thanks in advance,

- p


Re: which compiler is ant using?

Posted by Stefan Bodewig <bo...@bost.de>.
>>>>> "PA" == Paul Arzul <pa...@exinet.co.za> writes:

 PA> for the moment i am having to trust the documentation that
 PA> classic is the default for jdk 1.1/1.2, and modern for 1.3.

Trust it - the documentation is right (at least this time 8^).

Stefan