Running Ant1.4.1 with JDK 1.3.1_03.

I'm trying to build parts of my project with JDK 1.3 and other parts with
1.4. The 1.4 compilation targets look like this:

<target name="compile-java-1.4">
    <antcall target="compile-java-1.4-impl">
        <param name="java.home" value="${java14.home}"/>
    </antcall>
</target>

<target name="compile-java-1.4-impl">
    <javac classpathref="alto.classpath"
        debug="yes"
        deprecation="yes"
        destdir="${build}"
        srcdir="${src}"
        fork="true"
        target="1.4"
        source="1.4">
        <include name="${alto.package}/client/**/*.java"/>
        <include name="${alto.package}/commonui/**/*.java"/>
        <include name="${alto.package}/nexus/**/*.java"/>
        <include name="${alto.package}/workstation/**/*.java"/>
        <exclude name="${alto.test.dir}/*.java"/>
    </javac>
</target>

However, it seems that <javac fork=true> doesn't use the java.home property
to execute javac. It appears to execute whatever javac it finds on the PATH
which happens to be JDK 1.3. Is it supposed to use java.home to find the
javac executable or am I misinterpreting the docs?

Thanks,
Gordon

---
Sitraka -- the Java advantage
http://www.sitraka.com/


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to