Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 36354 invoked from network); 9 May 2002 13:25:12 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 9 May 2002 13:25:11 -0000 Received: (qmail 3079 invoked by uid 97); 9 May 2002 13:25:00 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 3034 invoked by uid 97); 9 May 2002 13:24:59 -0000 Mailing-List: contact ant-user-help@jakarta.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 ant-user@jakarta.apache.org Received: (qmail 2957 invoked by uid 98); 9 May 2002 13:24:58 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Date: Thu, 09 May 2002 16:25:13 +0300 From: Shimon Crown Subject: Re: Ant very slow with JDK 1.3 and 1.4 To: Ant Users List Message-id: <004701c1f75c$f4cdbb60$2b0b0b0b@shimoncnt> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Mailer: Microsoft Outlook Express 5.00.2314.1300 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT X-Priority: 3 X-MSMail-priority: Normal References: <002201c1f74a$e1607480$2b0b0b0b@shimoncnt> <3CDA6CE0.1010807@cortexebusiness.com.au> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I found the problem. I am including two entire directories in my builds. When I ran ant with -debug as you suggested I saw that the compiler was getting a very long classpath (far too long to show here !!). Apparently the later compilers were choking on this. When I removed extraneous files from these directories I got acceptable build times. Thanks for the help. Shimon Crown ----- Original Message ----- From: Conor MacNeill To: Ant Users List Sent: Thursday, May 09, 2002 3:34 PM Subject: Re: Ant very slow with JDK 1.3 and 1.4 > Shimon Crown wrote: > > I have a number of JDKs on my Windows NT box. I have found that I > > get unacceptably slow compile times when compiling with JDK 1.3.1 or > > JSDK 1.4.0. For comparison it takes about 10 seconds to compile 6 files > > with JDK 1.2.2 (supplied with the IDE I use) whereas it takes 2.5 minutes > > with the later JDKs. I am changing the JDK by setting the JAVA_HOME > > variable in the ant.bat file > > > > 6 files in 2.5 minutes - that is pretty slow, assuming they are your common > or garden variety classes. I just built ant on my slow old box and it took > 50 seconds for a complete distribution (including compiling 485 files). > > > e.g : > > > > rem set JAVA_HOME=c:\j2sdk1.4.0 > > rem set JAVA_HOME=c:\jdk1.3.1 > > set JAVA_HOME=c:\visualcafexe\Java2 > > > > You could check the following > > 1. No Cafe stuff in your Path > 2. Check for java executables in Winnt\system32 > 3. Check for stuff in your classpath. > > If that gives no joy, you should run ant with the -debug flag and try to see > where the time is being spent. If it is in the compile step, what happens > when you use javac with the same args (You'll see them in the output)? > > Conor > > > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > -- To unsubscribe, e-mail: For additional commands, e-mail: