You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Armstrong, Robert" <Ro...@Winwin.com> on 2000/11/03 20:47:23 UTC

ant breaking w/ lots of files?

I posted this a week or so ago without much response. I've since upgraded to
Ant 1.2 and the problem still seems to be occurring. I had a fully
functional ant buildfile that suddenly broke one day when I reached about
700 source files. I compile them all in one fell swoop to avoid untangling
all the dependencies. 

Ant/Java somehow fails to load in all of my packages/classes and even though
the package directory structure is correct it fails to find several packages
which causes the whole build to fail.

Has anyone else experienced this sort of behavior? Is there a hardcoded
limitation within Ant for the number of files it can compile at once?

I'm running under Solaris with JDK 1.2.2_05a and Ant 1.2.

Any help would be appreciated.  Thanks!

robert



Re: ant breaking w/ lots of files?

Posted by Stefan Bodewig <bo...@bost.de>.
>>>>> "r" == robert  <ro...@elastica.com> writes:

 r> On Fri, 3 Nov 2000, Armstrong, Robert wrote: 

 >> I compile them all in one fell swoop to avoid untangling
 >> all the dependencies.

 r> How do you do this with the Javac task?
 r> Doesn't it compile each one separately?

No, this is what javac does anyway. It passes all files to compile to
javac (or jikes or jvc) at once. This is what makes Ant that much
faster than make (unless your project is so small that the build time
is dominated by startup time).

 >> Ant/Java somehow fails to load in all of my packages/classes and
 >> even though the package directory structure is correct it fails to
 >> find several packages which causes the whole build to fail.

Robert (Armstrong in this case) could you send a snippet of your
buildfile and the result of ant -debug?

 >> Has anyone else experienced this sort of behavior? Is there a
 >> hardcoded limitation within Ant for the number of files it can
 >> compile at once?

 r> I seriously doubt it.

So do I. 

We've had people telling us (on ant-dev) they are compiling 2000+
files in one pass, so it should work. One problem I can think of is
the JVM running out of memory (but it should tell you instead of
failing silently).

Stefan

Re: ant breaking w/ lots of files?

Posted by ro...@elastica.com.

On Fri, 3 Nov 2000, Armstrong, Robert wrote:

> I posted this a week or so ago without much response. I've since upgraded to
> Ant 1.2 and the problem still seems to be occurring. I had a fully
> functional ant buildfile that suddenly broke one day when I reached about
> 700 source files. I compile them all in one fell swoop to avoid untangling
> all the dependencies. 

How do you do this with the Javac task? 

Doesn't it compile each one separately?

> 
> Ant/Java somehow fails to load in all of my packages/classes and even though
> the package directory structure is correct it fails to find several packages
> which causes the whole build to fail.
> 
> Has anyone else experienced this sort of behavior? Is there a hardcoded
> limitation within Ant for the number of files it can compile at once?
> 
I seriously doubt it. The source is avialable for Ant right?

> I'm running under Solaris with JDK 1.2.2_05a and Ant 1.2.
> 
> Any help would be appreciated.  Thanks!
> 
> robert
> 
>