Bug 202572 - [javadoc export] generate Javadoc: invalid -source option for 1.3.1 javadoc tool
Summary: [javadoc export] generate Javadoc: invalid -source option for 1.3.1 javadoc tool
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-07 02:33 EDT by Eric Jodet CLA
Modified: 2007-09-12 12:28 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Jodet CLA 2007-09-07 02:33:48 EDT
Version: 3.3.0
Build id: I20070821-0800

javadoc tool version used
java version "1.3.1_20"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_20-b03)
Java HotSpot(TM) Client VM (build 1.3.1_20-b03, mixed mode)

Scenario:
try to generate the Javadoc using the Generate Javadoc wizard, keeping default settings.
when using any javadoc.exe > 1.3.1, no problem
when using the 1.3.1 version, nothing gets generated, and I get the following error message:
javadoc: invalid flag: -source

Looking at the Ant script generated from the wizard:
<javadoc access="public" author="true" classpath="." destdir="doc" nodeprecated="false" nodeprecatedlist="false" noindex="false" nonavbar="false" notree="false" source="1.3"
(...)

Sounds like the -source option is invalid in 1.3.1 mode.

To overcome this issue, go to the last page of the wizard, and set the JRE source compatibility to none (- in the combo).
Comment 1 Martin Aeschlimann CLA 2007-09-12 12:28:10 EDT
If you work with Javadoc commands from JDKs that don't support -source, you can set the source toggle to '-' (3rd page). Then, no '-source' will be generated. Neither on the command line nor in the ANT script.

I just tried this, and it works as expected.