Deepesh Bhargava schrieb:
> I have 20 files in various packages. Whenever I create javadocs I do not get
> package structures on the left frame. In this case all my source files are in
> a separate directory which are the same as their package.
> When I put all the source files in the dir structure corresponding to their
> packages it works file.
>
> Is it a shortcoming of javadoc utility or I am missing something. Any
> suggestions?
You have to enumerate all packages from which you want
to generate javadoc from.
> I use following command:
> javadoc -private -author -version -sourcepath c:\src *.java
Instead of *.java use my.package.A my.package.B my.package.C etc.
Or write a script which collects all packages from the directories:
#!/bin/bash
#
# Searches through the source directory tree and collects
# directories, which contain Java source files. Converts
# the name of the directories into Java package names.
#
# @author Christian Pesch
DIRS=`find $INSTALL_DIR/classes -type d`
for i in $DIRS; do
# gnu find: FILES=`find $i -name \*.java -type f -maxdepth 1`
FILES=`find $i/* -type d -prune -o -name \*.java -type f -print`
if [ -n "$FILES" ]; then
# gnu awk: echo $i | awk -- 'BEGIN { FS = "classes/" } { print $2 }' | sed
-e "s/\//./g" ;
echo $i | sed 's|'$INSTALL_DIR/classes/'||g' | tr / .
fi
done
If saved as collect-packages.sh and run
[cpesch@dwarf liveserver]$ sbin/collect-packages.sh
com.coremedia.cloudscape
com.coremedia.publisher.client
com.coremedia.publisher.client.impl
com.coremedia.publisher.server.replicator
com.coremedia.publisher.server.replicator.test
com.coremedia.publisher.importer
com.coremedia.watchdog
com.coremedia.beanparser
com.coremedia.servlet.tomcat
[..]
It prints out all package names below $INSTALL_DIR/classes. The
output may be included in a javadoc call as the package list.
--
Christian Pesch - Software Engineer
[EMAIL PROTECTED] - fon +49.40.325587.505 fax .999
CoreMedia AG - www.coremedia.com - 0700-COREMEDIA
Erste Brunnenstraße 1, 20459 Hamburg, Germany
CoreMedia - Think ahead! We're there.
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing