Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 64144 invoked from network); 7 Apr 2003 19:03:53 -0000 Received: from sj-core-5.cisco.com (171.71.177.238) by daedalus.apache.org with SMTP; 7 Apr 2003 19:03:53 -0000 Received: from mira1.cisco.com (IDENT:mirapoint@mira1.cisco.com [64.101.14.50]) by sj-core-5.cisco.com (8.12.6/8.12.6) with ESMTP id h37J3t9X024675 for ; Mon, 7 Apr 2003 12:03:57 -0700 (PDT) Received: from cisco.com (sjc-vpn4-559.cisco.com [10.21.82.47]) by mira1.cisco.com (Mirapoint) with ESMTP id ACH85880; Mon, 7 Apr 2003 12:04:42 -0700 (PDT) Message-ID: <3E91CB9A.8080400@cisco.com> Date: Mon, 07 Apr 2003 12:03:54 -0700 From: Alec Hothan Organization: Cisco Systems User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en MIME-Version: 1.0 To: user@ant.apache.org Subject: How to add source jar file to ANT javadoc target Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I need to document a bunch of java source files, some in directories, some in jar files. The Sun javadoc tool accepts any combination of directories or jar files (containing java source file) in its -sourcepath argument. Looks like the ANT javadoc task does not accept jar files (containing java source files) in the sourcepath. Anybody knows a workaround for this (other than unjarring the jar file) ? When I try to add a jar file to the sourcepath (or sourcepathref), ant complains that it is not a directory. Adding the jar file in the javadoc classpath attribute (as mentioned in previous postings in the archive) does not help because the javadoc spec says it will only look at the classpath (for backward compatibility reasons) if the sourcepath is not provided. Thanks Alec