Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 16508 invoked from network); 27 Oct 2006 16:39:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Oct 2006 16:39:57 -0000 Received: (qmail 12479 invoked by uid 500); 27 Oct 2006 16:40:03 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 12453 invoked by uid 500); 27 Oct 2006 16:40:03 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 12442 invoked by uid 99); 27 Oct 2006 16:40:03 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Oct 2006 09:40:03 -0700 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of jonesd3@gmail.com designates 66.249.92.170 as permitted sender) Received: from [66.249.92.170] (HELO ug-out-1314.google.com) (66.249.92.170) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Oct 2006 09:39:50 -0700 Received: by ug-out-1314.google.com with SMTP id z38so705299ugc for ; Fri, 27 Oct 2006 09:39:27 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=NffjrMXH9beT5z3uDPv0JUpu+gL0oVPU7WJbaHmTODo8hHNcJjVl1ELYrNN56keFR0Hw5b2v5zfClxUSBDyyRqxl7KnwZiC+lFAS5tjCyYpbTp+8MgnR6v5BBllFIP9KxzhVEbzZawL++VfB/nKSylnIw9rM9+v5E+J5962rWOE= Received: by 10.67.117.18 with SMTP id u18mr5226070ugm; Fri, 27 Oct 2006 09:39:27 -0700 (PDT) Received: by 10.49.94.17 with HTTP; Fri, 27 Oct 2006 09:39:27 -0700 (PDT) Message-ID: <766423370610270939s4b97f904p81b4cdfa11603f54@mail.gmail.com> Date: Fri, 27 Oct 2006 09:39:27 -0700 From: "David Jones" To: "Ant Users List" Subject: Re: Using Ant with older Java versions In-Reply-To: <4540266B.2060702@gmx.de> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_55258_25825384.1161967167247" References: <453FB26A.2070307@turinnetworks.com> <766423370610251206x737a53b7v45d3af2534b419e8@mail.gmail.com> <453FB77F.9090304@mindspring.com> <45401222.5010608@turinnetworks.com> <4540266B.2060702@gmx.de> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_55258_25825384.1161967167247 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I believe that the -source and -target parameters are specific to java 1.5. If you are using the 1.3 compiler, you don't need to try to ensure compatibility with 1.3, its automatic. On 10/25/06, Antoine Levy-Lambert wrote: > > Hello Wayne, > you need to set both executable and fork="true" > Regards, > Antoine > > Wayne Cannon wrote: > > True, it's just a warning, however, I've found that if you don't > > eliminate 100% of the warnings (and not just by suppressing warnings), > > meaningful warnings are missed that should result in code changes. > > > > I suspect "executable" is what I'm looking for, but when I set it to > > the Java 1.3.1_18 JDK, it begins to complain that "-source" is an > > invalid command line parameter -- as though my task is not > > compatible with Java 1.3. I'll look into it more tomorrow. > > > > Thanks to all, > > --Wayne > > > > > > Scot P. Floess wrote: > >> I think its just a warning...not that it doesn't compile. I tried it > >> on my machine (which has JDK 1.5.0_08 installed) and it did compile... > >> > >> David Jones wrote: > >>> Hi, > >>> > >>> Source and target define what compatibility to use, not which JDK is > >>> being > >>> used. So 1.5 probably just will not allow that to compile. However, > you > >>> could tell it to use a different JDK (1.3), using the executable > >>> option, and > >>> then it would actually be compiling with that version of java. > >>> > >>> That would be my suggestion, rather than trying to for 1.5 to work > >>> with your > >>> 1.3 code. > >>> > >>> __David > >>> > >>> -source Provide source compatibility with > >>> specified release > >>> -target Generate class files for specific VM > >>> version > >>> > >>> executable="/opt/java/jdk1.1/bin/javac" > >>>> > >>>> On 10/25/06, Wayne Cannon wrote: > >>>> > >>>> I'm attempting to convert a Java 1.3project to Ant that has an > >>>> attribute > >>>> named "enum" (Java 1.3 did not have an Enum class) -- "Enumeration > >>>> enum;". ... > >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > ------=_Part_55258_25825384.1161967167247--