ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Viraj Purang <>
Subject RE: Java Dependencies ...
Date Wed, 13 Jun 2001 21:38:01 GMT
Hi Diane,
   It definitely  helped me...

But I do remember having read in the "javac" description on
that javac's handling of "The need for recompilation" is not dependable and
-depend option is more desirable to use. eg:

"By default, javac considers a class file out of date only if it is older
than the source file. (The -Xdepend option specifies a slower but more
reliable procedure."

Another clarification is about the javac task itself :  you said 

"In any case, it isn't used to associate a dependency from the classfiles to
the sourcefiles -- that's done by the <javac> task itself". 

Do you mean that the functionality is taken care of, by the "javac task
implementation in ANT" OR 
comes to Ant intrinsically because "Javac executable which Ant
implementation from is supposed to handle this  behaviour". 

I have just completed a compilation script using Ant ...and based on
deductions I make regarding (which files are (re-)compiled and which are
not) I shall get back to you with more questions...

I am currently using something like ...

  <target name="build-main">
    <depend srcdir="com/spincircuit"
    <javac   srcdir="com/spincircuit" destdir="${}/classes"
             deprecation="off" debug="on" optimize="off" target="1.2"


Can you suggest the expected outcome of this set of statements ?

Viraj Purang


View raw message