Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 29511 invoked from network); 14 Aug 2000 07:24:04 -0000 Received: from adsl-63-198-47-125.dsl.snfc21.pacbell.net (HELO nuts.bluemarsh.com) (postfix@63.198.47.125) by locus.apache.org with SMTP; 14 Aug 2000 07:24:04 -0000 Received: from bluemarsh.com (chip [192.168.0.2]) by nuts.bluemarsh.com (Postfix) with ESMTP id A22F0AB35 for ; Mon, 14 Aug 2000 00:24:05 -0700 (PDT) Sender: nfiedler@bluemarsh.com Message-ID: <39979E95.703EE704@bluemarsh.com> Date: Mon, 14 Aug 2000 00:24:05 -0700 From: Nathan Fiedler Organization: Blue Marsh Softworks X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.14-12 i686) X-Accept-Language: en MIME-Version: 1.0 To: ant-user@jakarta.apache.org Subject: how to use javadoc task Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N I've got code in /home/nfiedler/java/com/bluemarsh/jswat that I want to run javadoc on, using Ant. So I try something like: < javadoc sourcepath="/home/nfiedler/java" destdir="apidist" packagenames="com.bluemarsh.jswat.*"/> This is apparently the only way I can get javadoc to work from within Ant. This has two problems. 1. Using /home/nfiedler/java as the sourcepath means that the javadoc task tries to read the java files in that directory, which is not my intention. I only want to document the code in /home/nfiedler/java/com/bluemarsh/jswat. 2. Using /home/nfiedler/java is not portable and is unacceptable to me. I would much prefer using a reasonable argument such as "." when running Ant from /home/nfiedler/java/com/bluemarsh/jswat. My thinking is the sourcepath attribute to javadoc should be made optional. Without the -sourcepath option javadoc will still find the packages by using the classpath environment variable. That would be the ideal solution for me. nathan