ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "M.A.Dunphy" <>
Subject RE: Class dependancies?
Date Mon, 26 Feb 2001 13:35:39 GMT

I downloaded jikes to see how it work for this behavior. The jikes FAQ shows
how the -depend works and it works fine, but the initial example was when
the base class was modified and the derived class was unchanged. Running ant
picks up the base class, but it cant/doesn't know that the derived class
needs to pass through the compiler.

I suppose this will always be the case and only be captured during a test or
a complete recompile.



-----Original Message-----
From: M.A.Dunphy []
Sent: 26 February 2001 11:27
To: ''
Subject: RE: Class dependancies?

Hi Conor

Reading the docs it appears that I have to use either the classic or jikes
compiler for this option. I have JDK1.3 and I've set the property
build.compiler=classic and set true the depend attribute in the javac task:
but I get the following:
    [javac] Compiling
C:\Example\srd\src\com\us\framework\servlets\ because it
is out of date with respect to

    [javac] Compiling 1 source file to C:\Example\build\classes\src
    [javac] Using classic compiler
    [javac] depend attribute is not supported by the modern compiler
    [javac] Compilation args: -d C:\Example\build\classes\src -classpath
jar;C:\ant1.2\lib\optional.jar;C:\ant1.2\lib\parser.jar -sourcepath
    [javac] File to be compiled:

What does setting build.compiler=classic do? does it mean the oldjavac is
used instead of javac?


-----Original Message-----
From: Conor MacNeill []
Sent: 23 February 2001 13:32
Subject: Re: Class dependancies?

Checkout the <depend> task which is part of 1.3. I think you will find that
it does largely what you want.


----- Original Message -----
From: "M.A.Dunphy" <>
To: "Ant-User (E-mail)" <>
Sent: Friday, February 23, 2001 9:57 PM
Subject: Class dependancies?

> Hi all,
> I'm sure this question was asked before and I hope there is an answer:
> CLASSB is derived from CLASSA. If CLASSA is modified, ant recompiles it
> CLASSB is not recompiled? Is there any solution to this. We changed
> such that it would generate compile errors, but ant ran fine and I
> understand why.
> Is the only solution to provide the inter-class dependancies? Has anybody
> done this, i.e. written a utilities that scans the src and produces an
> that explicitly defines this relationship between these 2 classes?
> Thanks
> Mick

View raw message