ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jing Xue <...@manifoldronin.com>
Subject 'compiler' and 'fork' ignores each other
Date Fri, 05 Dec 2003 21:48:20 GMT
The document for <javac> states:
"The fork attribute overrides the build.compiler property or compiler attribute 
setting and expects a JDK1.1 or higher to be set in JAVA_HOME."
But when I run:
<javac srcdir="src" destdir="classes" debug="${javac.debug}" 
deprecation="${javac.deprecation}" source="1.4"
       fork="yes" executable="${env.JAVA_HOME}/bin/javac.exe">
    <classpath>
        <path refid="project.classpath"/>
    </classpath>
</javac>
I get:
[javac] Since compiler setting isn't classic or modern,ignoring fork setting.

Then when I try:
<javac srcdir="src" destdir="classes" debug="${javac.debug}" 
deprecation="${javac.deprecation}" source="1.4"
       compiler="modern" fork="yes" executable="${env.JAVA_HOME}/bin/javac.exe">
    <classpath>
        <path refid="project.classpath"/>
    </classpath>
</javac>
I get:
[javac] Since fork is true, ignoring compiler setting.

--J.X.


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


Mime
View raw message