DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=30606>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=30606 [PATCH] Ability to specify actual executable for <javadoc> Summary: [PATCH] Ability to specify actual executable for <javadoc> Product: Ant Version: 1.6.2 Platform: PC OS/Version: Linux Status: NEW Severity: Enhancement Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Currently it seems there is no way to specify the exact executable used to implement <javadoc>. This can be a major problem if you want to run Ant on one JDK (e.g. 1.4.2) while generating Javadoc for a project using another JDK (e.g. 1.5.0 beta). For example, there is no way to make 1.4.2's javadoc tool handle 1.5 generic sources. (-bootclasspath is no help: this does not change where the classes for the tool itself are loaded from.) Without this patch, it is thus impossible to make <javadoc> generate Javadoc for 1.5 generic sources when running Ant itself on a 1.4 or earlier VM. You need to use <exec> or <apply> or similar, which of course loses all the readability and error-checking of the normal task. Provides some parity with the 'executable' attribute of <javac>. Patch was lightly tested on Linux using 1.4.2 vs. 1.5.0 b62; seems to work as desired. Note that whatever bits of logic disable certain flags that are not supported by the "current" Javadoc version, will not be accurate if using an explicit executable. I think in practice this would not be a problem; the user would need to not attempt to set optional attributes (or nested elements) on <javadoc> that might not work in the target Javadoc version. Impact on NetBeans IDE 4.0: http://www.netbeans.org/issues/show_bug.cgi?id=46901 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]