Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 74032 invoked from network); 25 Oct 2000 02:16:31 -0000 Received: from unknown (HELO gulf.hoteltools.com) (63.65.42.130) by locus.apache.org with SMTP; 25 Oct 2000 02:16:31 -0000 Received: by GULF with Internet Mail Service (5.5.2650.21) id ; Tue, 24 Oct 2000 16:30:25 -0400 Message-ID: <59B1C000C017D411A43200508BC7494E25889A@GULF> From: Jesse Tilly To: "'ant-dev@jakarta.apache.org'" Subject: Duplicates from Jesse E Tilly Date: Tue, 24 Oct 2000 16:30:17 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N I apologize. I don't know why my messages are duplicating themselves. I *know* I am not sending it twice. Jesse -----Original Message----- From: Jesse Tilly [mailto:JTilly@hoteltools.com] Sent: Tuesday, October 24, 2000 2:40 PM To: 'ant-dev@jakarta.apache.org' Subject: RE: Dependencies between classes I think we'll al be disappointed if we implement this. The compilers and the compiler spec itself change. They may get even "smarter" in terms of dependencies and render any intelligence in Ant void or, even worse, a hindrance. Any changes we make should follow closely with the intentions of Sun and their specifications for the compiler. We run into the same issues with where optimization is located. The concepts of object oriented compilation, how byte code is handled and deployment will, for the near future, be of some contention as the "kinks are worked out". What if javac suddenly wants to compile straight to a WAR or JAR? How would dependencies be handled outside of the compiler? Anyway, just brining up points as to why this is a very difficult design decision. Jesse -----Original Message----- From: Matthijs Hollemans [mailto:matthijs@virtualunlimited.com] Sent: Tuesday, October 24, 2000 5:57 AM To: ant-dev@jakarta.apache.org Subject: Re: Dependencies between classes Hi Pete, [class dependencies] > I have plans to work on a cc task and will need it then and thus it will > probably make it into abnt some how - it is a matter of determining the > least expensive and most elegent way to do it thou ;) Make a proposal how > you would do it and see how it is received ;) Well, I don't know what Conor's implementation did, but I was thinking about looking at the symbol tables from the actual .class files to see which other classes they refer to. That way you use the dependency information that the compiler already generated, so you don't have to scan through the source files yourself (like jdeps does). Extracting this information from .class files is pretty easy; I knocked up a simple 10-line test program to do so yesterday using the JavaClass library (of course, without this library it would be a lot harder ;-). Matthijs