You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ru...@us.ibm.com on 1999/12/31 03:45:39 UTC

Proposed change to ant/taskdefs/javadoc2


Background: javadoc appears to contain a call to System.exit().  This makes
the code rather difficult to embed in another application, such as ant.

The attempted workaround to date has been to introduce a security manager
which will disallow this call, then capture and ignore the
SecurityException at runtime.  Unfortunately, significant redesign of the
security interfaces were made in Java 1.2, making it nearly impossible to
build a single binary form of ant which is usable across the various levels
of the JDK.

What I would like to propose is that the security manager code be removed
and in its place, javadoc be invoked via a simple
Runtime.getRuntime().exec() call.  This will require javadoc to be in your
path and will increase the overall virtual memory requirements for this
single step.

Should future versions of javadoc become more friendly, direct invocation
could become a possibility again, and the choice could be made based on the
level of the JDK.

Anybody has any objections or better ideas?