You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Stephen Haberman <st...@chase3000.com> on 2001/08/22 03:39:27 UTC

class files not being updated

Hi,

I've started using ant and really like it.  However, I ran in to a
problem where I was building multiple java files and the class files
weren't being updated.  It seemed that if I removed or changed any
methods to a class, the changes would be visible to the client, but any
methods I added couldn't be found.

A friend said he had ran in the problem the same type of thing and it
happened because all of the java files were passed to the compiler at
once and the compiler was losing track of things.  So I compiled each
file individually and it magically started working.

I realize this is more of a compiler issue (I'm using IBM's JDK), but
would it be something ant could address?  Or would any java compiler
gurus on the list know why I ran in to the problem in the first place?

Thanks,
Stephen



Re: class files not being updated

Posted by Peter Donald <do...@apache.org>.
On Wed, 22 Aug 2001 11:39, Stephen Haberman wrote:
> Hi,
>
> I've started using ant and really like it.  However, I ran in to a
> problem where I was building multiple java files and the class files
> weren't being updated.  It seemed that if I removed or changed any
> methods to a class, the changes would be visible to the client, but any
> methods I added couldn't be found.
>
> A friend said he had ran in the problem the same type of thing and it
> happened because all of the java files were passed to the compiler at
> once and the compiler was losing track of things.  So I compiled each
> file individually and it magically started working.
>
> I realize this is more of a compiler issue (I'm using IBM's JDK), but
> would it be something ant could address? 

maybe ... but a better solution would be to download jikes. A much faster, 
more compliant java compiler ;)

-- 
Cheers,

Pete

*-----------------------------------------------------*
* "Faced with the choice between changing one's mind, *
* and proving that there is no need to do so - almost *
* everyone gets busy on the proof."                   *
*              - John Kenneth Galbraith               *
*-----------------------------------------------------*