ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 7312] - depend fails if there are multiple classes in one source file
Date Tue, 09 Apr 2002 13:25:21 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7312>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7312

depend fails if there are multiple classes in one source file

conor@cortexebusiness.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From conor@cortexebusiness.com.au  2002-04-09 13:25 -------
It is a problem with <depend> but depend cannot remove C.java because, in
general, there may be nothing which relates My.class to C.java. 

It affects <javac> since both tasks use the same mechansim to associate a class
file with its source file - the filename. So <depend> will delete a class which
 <javac> will not re-compile since it does not see it as "missing".

I have added a message to <depend> which will warn when it discovers a class
file which is out of date but for which it cannot determine the source file. In
this case the class file will not be deleted. 

Please try the next nightly build.

I am considering to extensions to <depend>. One would allow you to specify the
source file that corresponds to a non-public class. The other would allow you to
set up explicit dependencies to cope with dependencies which the compiler has
optimised away. Thoughts?

It also may be possible to recover the source file info when debugging info is
included in the class file.

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message