avdyk ([info]avdyk) wrote,
@ 2004-05-11 12:27:00
Previous Entry  Add to memories!  Tell a Friend  Next Entry
MovingJavaToMain progress
I sent an announcement about the status of the MovingJavaToMain Debian tasks. Thanks to Takashi Okamoto who did a lot with his packages.



(4 comments) - (Post a new comment)

libservlet2.3-java
(Anonymous)
2004-05-11 04:04 pm UTC (link)
In your message, you mentioned that libservlet2.3-java is waiting on a javadoc replacement. I submitted a patch to the BTS (246632) that lets libservlet2.3-java build using gjdoc, jikes, kaffe, and libant1.6-java, allowing it to move to main. I also mentioned this on the java.debian.net wiki. Is there a problem with the patch? It does modify the build.xml file because gjdoc cannot work with the ant javadoc task at the moment, but it still works, and many packages are currently blocked waiting on libservlet2.3-java.

(Reply to this) (Thread)

Re: libservlet2.3-java
[info]avdyk
2004-05-12 01:23 am UTC (link)
Hi Josh,

Thanks for your patch, I already look at it and it seems very good. I'll ask Stefan to know what he thinks about it (mail sent). So we have to wait for Stefan to have time to investigate the bug and the patch; but the main problem is gjdoc! Gjdoc MUST be a drop in replacement of javadoc and so must understand every arguments of javadoc... that's a bigger job ;-)

(Reply to this) (Parent)(Thread)

Re: libservlet2.3-java
(Anonymous)
2004-05-12 10:02 am UTC (link)
The major problem is that in order to be a drop-in replacement for the purposes of the javadoc ant task, the JDK bin directory (/usr/lib/kaffe/bin for Kaffe) must contain a "javadoc" program that calls gjdoc. I think the next upstream version of Kaffe will have this integrated.

The minor problem is that the gjdoc task in ant calls the gjdoc class directly, without using the wrapper script /usr/bin/gjdoc that sets LD_LIBRARY_PATH=/usr/lib/jni and -Djavax.xml.transform.TransformerFactory=gnu.xml.libxmlj.transform.TransformerFactoryImpl . However, once the major problem is solved, the minor problem goes away because the gjdoc task is no longer needed.

Once those issues are taken care of, the only question remaining is compatibility in functionality. When testing gjdoc to build libservlet2.3-java, I only encountered one feature that didn't work. gjdoc couldn't process the "-bottomnote" option, even though that option is listed in the manpage. When I passed that option with argument "Copyright © 1999-2001 The Apache Software Foundation. All Rights Reserved.", gjdoc returned this error:
     [exec] Running doclet...
     [exec] java.io.FileNotFoundException: No such file or directory
     [exec]    at java.io.FileDescriptor.nativeOpen (FileDescriptor.java)
     [exec]    at java.io.FileDescriptor.open (FileDescriptor.java:184)
     [exec]    at java.io.FileDescriptor. (FileDescriptor.java:120)
     [exec]    at java.io.FileInputStream. (FileInputStream.java:92)
     [exec]    at java.io.FileInputStream. (FileInputStream.java:82)
     [exec]    at java.io.FileReader. (FileReader.java:89)
     [exec]    at gnu.classpath.tools.doclets.xmldoclet.Driver.instanceStart (Driver.java:781)
     [exec]    at gnu.classpath.tools.doclets.xmldoclet.Driver.start (Driver.java:232)
     [exec]    at java.lang.reflect.Method.invoke0 (Method.java)
     [exec]    at java.lang.reflect.Method.invoke (Method.java:255)
     [exec]    at gnu.classpath.tools.gjdoc.Main.startDoclet (Main.java:408)
     [exec]    at gnu.classpath.tools.gjdoc.Main.start (Main.java:609)
     [exec]    at gnu.classpath.tools.gjdoc.Main.main (Main.java:477)
     [exec] ERROR: java.io.FileNotFoundException: No such file or directory

(Reply to this) (Parent)(Thread)

Re: libservlet2.3-java
[info]avdyk
2004-05-12 02:14 pm UTC (link)
1) yes, gjdoc is in kaffe1.1.5, see debian-java mailing list for unofficial debian pre-release http://lists.debian.org/debian-java/2004/05/msg00024.html

2) ant calls the javadoc binary (or shell script) from JAVA_HOME/bin. It's clear in the ant source code. You can also try to modify the shell script (with an additional 'echo') and you'll see the result.

3) try to replace the entity with '(c)'; it's probably an entity problem.

Many thanks for your comments, I'll try to upload libservlet2.3-java with your patch asap but will be very busy from tomorrow until late next week, but Stefan Gybas already saw your patch and for him it's OK, but he is very busy at the moment also.

(Reply to this) (Parent)


(4 comments) - (Post a new comment)

Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…