hi Hezjing,
Try the executable attribute in <javac>.
By default it will be 1.5 for you.
however try setting this executable attribute to the filepath for 1.4
javac.exe, whereever you require the sources to be compiled with 1.4
JDK
hope this helps
regards
Sunil Prabhakaran
On 7/17/07, hezjing <hezjing@gmail.com> wrote:
> Hi!
>
> I have projects to be compiled with Java 1.4, or Java 1.5 and how can
> I explicitly select the compiler in build.xml?
>
> When I set fork="yes" when calling <javac>, how do I know which JDK
> compiler the <javac> is executing?
>
> There are Java 1.4 and 1.5 installed in my environment, with JAVA_HOME
> pointing to Java 1.5.
>
>
> --
>
> Hez
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
|