You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Steve Buroff <sj...@verizon.net> on 2001/09/11 19:20:25 UTC

javac and JDK 1.4

Anyone know how to use ant javac with JDK 1.4. I need to supply
the "-source 1.4" option to get it to handle my asserts. I see no
way to do this and the compiler bombs. Anyone know a workaround?
Thanks

Steve Buroff

ant, javac, javadoc, asserts and JDK 1.4

Posted by Bradford Holcombe <bh...@3veni.com>.
Steve Buroff wrote:

> Anyone know how to use ant javac with JDK 1.4. I need to supply
> the "-source 1.4" option to get it to handle my asserts. I see no
> way to do this and the compiler bombs. Anyone know a workaround?
> Thanks

and yuri.gadow@ieee.org wrote:

> I had the same problem a while ago and had to modify the taskdef. I don't have
> it with me or I'd attach it (can this evening if still needed, but it's a
> fairly easy change to make, just follow the example set in the src (re-use
> through cut & paste))

A temporary patch and related commentary is listed in Ant
Bug 3045
(http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3045).
Stefan Bodewig has a new javac task in CVS which requires
three files be added to the source release for 1.5alpha (my
particular solution). The assert issues with javadoc have
yet to be resolved at Sun. Again, see the commentary.

-- 
Bradford Holcombe
c/o Triveni Digital
40 Washington Road
Princeton Junction, NJ 08550
609.716.3504
bholcombe@3veni.com
www.trivenidigital.com

RE: javac and JDK 1.4

Posted by Steve Buroff <sj...@verizon.net>.
That's not the problem. I need to give the
"-source 1.4" option to the compiler and I
don't see how to do that. If javac had an
"additionalparams" property like javadoc does,
that would solve the problem. However, it doesn't.

Steve Buroff

-----Original Message-----
From: T Master [mailto:tmaster@iknowledgeinc.com]
Sent: Tuesday, September 11, 2001 1:30 PM
To: ant-user@jakarta.apache.org
Subject: Re: javac and JDK 1.4


set your JAVA_HOME accordingly.

----- Original Message ----- 
From: "Steve Buroff" <sj...@verizon.net>
To: "antUser" <an...@jakarta.apache.org>
Cc: "Buroff, Steven" <sj...@verizon.net>
Sent: Tuesday, September 11, 2001 11:20 AM
Subject: javac and JDK 1.4


> Anyone know how to use ant javac with JDK 1.4. I need to supply
> the "-source 1.4" option to get it to handle my asserts. I see no
> way to do this and the compiler bombs. Anyone know a workaround?
> Thanks
> 
> Steve Buroff
> 


Re: javac and JDK 1.4

Posted by T Master <tm...@iknowledgeinc.com>.
set your JAVA_HOME accordingly.

----- Original Message ----- 
From: "Steve Buroff" <sj...@verizon.net>
To: "antUser" <an...@jakarta.apache.org>
Cc: "Buroff, Steven" <sj...@verizon.net>
Sent: Tuesday, September 11, 2001 11:20 AM
Subject: javac and JDK 1.4


> Anyone know how to use ant javac with JDK 1.4. I need to supply
> the "-source 1.4" option to get it to handle my asserts. I see no
> way to do this and the compiler bombs. Anyone know a workaround?
> Thanks
> 
> Steve Buroff
>