Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 86143 invoked from network); 3 May 2005 15:52:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 May 2005 15:52:40 -0000 Received: (qmail 89743 invoked by uid 500); 3 May 2005 15:06:02 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 89706 invoked by uid 500); 3 May 2005 15:06:02 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 89653 invoked by uid 99); 3 May 2005 15:06:01 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from ns2.priorweb.be (HELO ns2.priorweb.be) (213.193.229.2) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 03 May 2005 08:06:01 -0700 Received: (qmail 18293 invoked by uid 1012); 3 May 2005 15:04:08 -0000 Received: from wim@nieuwenbos100.be by sleeps by uid 1010 with qmail-scanner-1.22 (clamscan: 0.73. Clear:RC:1(169.5.96.129):. Processed in 0.412689 secs); 03 May 2005 15:04:08 -0000 Received: from unknown (HELO pmlaptop) (169.5.96.129) by sleeps.priorweb.be with SMTP; 3 May 2005 15:04:08 -0000 Message-ID: <008301c54ff1$564a9c10$816005a9@euro.mmm.com> From: "Wim Praet" To: "Ant Users List" References: <010401c54f29$8c7af910$816005a9@euro.mmm.com><011101c54f2e$b3615ec0$816005a9@euro.mmm.com> Subject: Re: Ant 1.6.3, JDK1.5 and extJavac="1.3" Date: Tue, 3 May 2005 17:03:57 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N >>>> >>> compiler="extJavac" executable="${jdk13}" source="1.3" >>>> target="1.3"> >>> >>> Try . >> >> When I try to do that ( being: >> > compiler="javac1.3" fork="true" source="1.3" target="1.3"> > > executable="${jdk13}" > > is missing. You need to tell Ant (1) that you want to run an external > JDK compiler (fork="true"), (2) that you don't want the one of the > current JDK, but a different executable (executable="...") and (3) > that the compile accepts a command line compatible with the one of JDK > 1.3 (compiler="javac1.3"). > > Your original setup lacked (3), your second attempt lacked (2). Thanks, this works indeed like expected! But only on Ant 1.6.3... Running the same build file with JDK1.5 as default JDK and Ant 1.6.2 gives following output: [echo] Using C:\java\jdk1.3.1_02\bin\javac.exe [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 455 source files to C:\projects\test\build So, there is a difference between the new and old Ant on the "fork" attribute. However, thanks a lot! Wim. > > Cheers > > Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org