classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Working On Classpath


From: Andrew John Hughes
Subject: Re: Working On Classpath
Date: Fri, 28 May 2004 01:17:34 +0100

On Thu, 2004-05-27 at 16:45, Thomas Zander wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Thursday 27 May 2004 12:17, Andrew John Hughes wrote:
> > > since I still can't apt-get it, its not on my radar.  (I'm wondering
> > > how many distro's ship kaffe.)
> >
> > Kaffe is in Debian stable and unstable
> Hmm, I use testing..
> 
So do I -- but I imagine you still have the stable package lists... ;-)
I imagine the unstable version will eventually make its way into
testing, anyway.
> >  So, Ant simulates make's functionality, but there
> > is nothing to simulate detecting the JVM as the autotools can do (or, if
> > there is, you don't see it in any current uses of Ant).
> ant is a shell-script; it does its best to look for java. It uses JAVACMD, 
> or JAVA_HOME if it can't find a java in the path.
> I'm not sure this answers your concerns though, and still expects a fully 
> implemented JVM.
> 
My bad here -- I should have said its the Java compiler that's the
problem.  Running ant tries to use Sun's compiler from tools.jar by
default -- I don't think there's any detection here (and there is a
javac (mapped to jikes) in the path).

> > If [the autotools] are flexible enough to
> > also work with Java code (which they probably predate), this is an
> > advantage of their design.
> 
> That is something they can't do; they can call jikes from the command line; 
> but that is a LOT slower then ant with jikes, or ant with javac. This is 
> because a) ant knows which 'clusters' of files have changed and passes 
> them all to the compiler in one compile-run, and  b) ant can do dependency 
> checking (which file needs a recompile because it depends on a changed 
> one) by reading the class files.
> 
Which is where Ant excels as a Java-optimised build tool -- Makefiles
have no concept of what class files are, and so can't pull out the
required dependencies.  I'm not sure how Ant runs with other compilers
like Jikes, but with Sun's, it calls classes from tools.jar rather than
the binary -- this probably gives a speed increase.  Of course, the
dependency handling doesn't always seem to work -- I have a habit of
doing a clean of my classes files before a build, because otherwise old
class files tend to hang around and hide errors in the code (with Jikes,
anyway).
> 
> - -- 
> Thomas
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
> 
> iD8DBQFAtg0KCojCW6H2z/QRAmDsAJ9AlDKcQ7s/38eC8TrOEFsbOgwRmQCgzGNn
> qvC1caK9cgUwgzvdFHUC6JU=
> =6c+4
> -----END PGP SIGNATURE-----
> 
> 
> _______________________________________________
> Classpath mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/classpath

Cheers,
-- 
Andrew :-)
 
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
 
Value your freedom, or you will lose it, teaches history.
`Don't bother us with politics' respond those who don't want to learn.
 

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]