ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Luce <marc.l...@blackbird.net>
Subject RE: Javac dependency checking
Date Wed, 06 Dec 2000 14:00:06 GMT
The NPE actually occurred before I added the closure setting.  I will remove
that setting, and recompile with original source, and mail it to you.

-----Original Message-----
From: Conor MacNeill [mailto:conor@m64.com]
Sent: Wednesday, December 06, 2000 8:26 AM
To: ant-user@jakarta.apache.org
Subject: RE: Javac dependency checking


Marc,

Hmmm, that is strange. Line 248 is in the else for closure, but you have
closure set to "on". In any case, could you run it with the unmodified
<depend> task and -verbose for ant and send me the output (You can send
this to me directly conor@cortexebusiness.com.au if you prefer).

Cheers
Conor

-----Original Message-----
From: Marc Luce [mailto:marc.luce@blackbird.net]
Sent: Wednesday, 6 December 2000 23:51
To: 'ant-user@jakarta.apache.org'
Subject: RE: Javac dependency checking


There is a bug in either the Depend source code or in my usage.  We have
a rather large project with may interdependent packages.  We consider 4
main packages as different entities.  We need to slow down development
and stop the bleeding between these packages.  In the meantime my
build.xml file treats those packages as separate targets and I let javac
deal with the interdependencies.  But when I added the <depend> tag
before the 4 <javac> tags I am getting a problem deleting a dependent
class file that has inner classes.  The long and the short of the
problem is that the Depend task deleted a file based on one of it's
inner classes, and then, later, when a different inner class of the same
outer class needs to delete the class file I get a NPE on line 248 of
Depend.  I just wrapped that if statement in a try {} catch{NPE} because
the file is already deleted.
Is that try catch really needed or am I simply using it wrong.  By the
way, my depend tag is:
    <depend srcdir="${src.dir}"
            destdir="${build.dir}"
            cache="${temp.dir}/dep.cache"
            closure="on" />
-----Original Message-----
From: James Duncan Davidson [mailto:duncan@x180.net]
Sent: Wednesday, December 06, 2000 5:04 AM
To: ant-user@jakarta.apache.org
Subject: Re: Javac dependency checking


On 12/6/00 1:51 AM, "Diane Holt" <holtdl@yahoo.com> wrote:
> Note: It should not be assumed that anyone who uses jikes just always
> cleans out all their classfiles and recompiles everything. I use
jikes,
> but I do as-needed recompiles because, for me, a full recompile of all
the
> classfiles can take anywhere from around 3min. to around 5min. on a
slow
> machine. (I can't just hand off all my source-files to the compiler at
> once, because I have different classpaths for different files, so my
build
> is divvied up into lots and lots and lots of <javac> tasks.)
Good point.
--
James Duncan Davidson
duncan@x180.net
                                                                  !try;
do()

Mime
View raw message