You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Wim Bervoets <wi...@iconmedialab.com> on 2000/09/25 11:58:59 UTC
Java dependencies in Ant
Hi, <<build.xml>> <<depend.txt>> <<makefile>>
If I have
class A { B b; }
class B { C c; }
class C { }
Clearly class A depends on class B, and class B depends on class C. Suppose
each is in their own file: A.java, B.java, and C.java.
I would like to know if it's possible to build an ANT xml file like the
makefile I included as an attachment. (eg. when I edit C.java , A and B
should also be rebuild because they depend on C)
The attached ant build.xml doesn't do this.
Any suggestions?
Wim
----------------------------------------------------------------------------
------------
Wim Bervoets
Internet Applications Developper @ Icon Medialab Brussels
wim.bervoets@iconmedialab.com
http://www.iconmedialab.com
Wim's BIOS Page
http://www.ping.be/bios
Freelancer for Computer Magazine
http://www.compmag.com
----------------------------------------------------------------------------
------------
Re: Java dependencies in Ant
Posted by Peter Donald <do...@mad.scientist.com>.
At 11:58 25/9/00 +0200, you wrote:
>Hi, <<build.xml>> <<depend.txt>> <<makefile>>
>
>If I have
>class A { B b; }
>class B { C c; }
>class C { }
>Clearly class A depends on class B, and class B depends on class C. Suppose
>each is in their own file: A.java, B.java, and C.java.
>I would like to know if it's possible to build an ANT xml file like the
>makefile I included as an attachment. (eg. when I edit C.java , A and B
>should also be rebuild because they depend on C)
>The attached ant build.xml doesn't do this.
>
>Any suggestions?
It is a feature of compiler and not ant. Try downloading jikes and using
full dependancy checking to achieve this functionality.
Cheers,
Pete
*------------------------------------------------------*
| "Nearly all men can stand adversity, but if you want |
| to test a man's character, give him power." |
| -Abraham Lincoln |
*------------------------------------------------------*