"John Keiser" <[EMAIL PROTECTED]> writes:

>       I suggest someone get the Makefiles ready to easily build 
> classpath.zip.
> That is priority one on the Classpath side for release, and I don't have
> time to do that part ... 

I've been working on the java side of this part.  Here's the crux of
the problem and the solution I'm going after, which Paul is completely
aware of.  Many java classes depend on other java classes and
sometimes depend on other each other.  To compile such interdependent
classes with javac you put both .java files on the same compile line.
Due to possible problems with the number of arguments allowed on the
command line and the general ugliness of it, we're avoiding listing
every file in every directory for one compile.  (Not to mention the
freakin' problems with both javac and guavac.)  Someone wrote a
program, called JavaDeps, which I found and tried to use on GNU
Classpath.  It has a few problems and is unable to parse through
everything (finding imports, dependencies in variables, etc.) so I
never get any generated output.  Paul and I have both contacted the
author independently to talk about our problems (which produce
exceptions and errors in the code) and switching from JavaCC to
ANTLR.  The output of JavaDeps is supposed to be a single Makefile
capable of properly compiling your classes.  This could then be easily
massaged into Makefile.am at the top level of the tree.

Now, the thing which can be done until a program like JavaDeps is
written by us or the current one works (it is GPL btw) is to
statically, and by hand, produce a Makefile capable of compiling
classpath's java file in the interim.  The dependency tracking of
javac doesn't work and to see why visit
http://www.cs.mcgill.ca/~stever/software/JavaDeps-2/

On to the native side of things.  If no one else can come up with
another approach to the Java side of things, then we can remove those
from the Makefile.am files we have all over the place.  At that time
it should be possible to work on getting the native side of things to
compile.  Actually, for the time being we could probably just comment
out the Java stuff in case it is needed later.

Brian
-- 
|-------------------------------|Software Engineer
|Brian Jones                    |[EMAIL PROTECTED]
|[EMAIL PROTECTED]                    |http://www.nortel.net
|http://www.classpath.org/      |------------------------------

Reply via email to