ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shimon Crown <shimon.cr...@equipnet.co.il>
Subject Re: Ant very slow with JDK 1.3 and 1.4
Date Thu, 09 May 2002 13:25:13 GMT
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 <conor@cortexebusiness.com.au>
To: Ant Users List <ant-user@jakarta.apache.org>
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:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message