ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Macey, Ian" <>
Subject Make Dependencies
Date Fri, 06 Apr 2001 12:39:03 GMT
How can I tell Ant that there is a dependency between two
.java files? ie Given and, how do I say in Ant,
if is compiled then you must also compile
Have had various attempts, the problems are getting javac 
to compile even though b.class is later than, 
and using something like touch, as in Ant every rule fires 
and I can't restrict the touch to occur only if is compiled.  
Doing this with Make would be easy, but I just don't see 
how to do it with Ant... Is this a fundamental problem due
to Ant relying on javac to know whether a file needs to be



This communication is for the attention of the
named recipient only and should not be passed
on to any other person. Information relating to
any company or security, is for information
purposes only and should not be interpreted as
a solicitation or offer to buy or sell any security.
The information on which this communication is based
has been obtained from sources we believe to be reliable,
but we do not guarantee its accuracy or completeness.
All expressions of opinion are subject to change
without notice.

View raw message