ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ed Mack <>
Subject RE: Mixing compilers
Date Thu, 08 Aug 2002 03:25:08 GMT
Thanks, Jacob.  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.
I've got tools/jdk-1.1 and tools/jdk-1.2 directories.  I tried using
the "executable" attribute too but that just gives me a different

I'll take a look at the release notes and fix the error.

When do you want to fork, in a javac task?


-----Original Message-----
From: Jacob Kjome []
Sent: Wednesday, August 07, 2002 8:04 PM
To: Ant Users List
Subject: Re: Mixing compilers


Read the j2sdk1.4 release notes.  The one bit of backward compatibility 
that they broke was in the assert syntax.   As far as the javac message, 
why are you forking?  If you fork, you move into a separate JVM process 
where, I imagine, the special Ant build.compiler "magic" properties don't 
apply.  The fix?  Don't fork javac.


At 04:59 PM 8/7/2002 -0700, you wrote:
>I'm running Ant 1.5 under the 1.4.0_01 JDK and I need to compile some 1.1
>classes, but I get errors from my compile target:
>     [javac]
> warning: as of release 1.4, assert is a keyword, and may not
>be us
>ed as an identifier
>My (simplified) 1.1 javac target is as follows:
>  <javac
>       target="1.1"
>       fork="yes"
>       srcdir="${preproc_dir}"
>       destdir="${obj_dir}"
>       bootclasspath="${tools_dir}/jdk-1.1/lib/"
>       classpath="${preproc_dir}:${1.1-jars}"
>  />
>Another piece of info (maybe it's related).  I also get the "[javac] Since
>fork is true, ignoring compiler setting."
>message.  (What is being ignored?!)
>Can someone help?!  This worked using the 1.3.1 JDK, even without the
>"bootclasspath" option.
>Ed Mack
>Mgr, Configuration Developers & Release Engineers
>WRQ, Inc.
>  <>
>   <>
>WRQ has 21 years of experience providing integration software and services
>for host-intensive environments. To learn more about our Reflection and
>Verastream products, visit  <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message