Mercurial > hg > soundsoftware-site
changeset 450:73401a15037b bug_182
Ensure package name is given to javadoc even when only one package prefix found (fixing #182); use tree overview file as index instead of frame-based index file for multi-package extractions
author | Chris Cannam |
---|---|
date | Thu, 09 Jun 2011 16:49:58 +0100 |
parents | 6253d777aa12 |
children | a9f6345cb43d b8105f717bf7 |
files | extra/soundsoftware/extract-javadoc.sh |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/extra/soundsoftware/extract-javadoc.sh Mon Jun 06 13:34:19 2011 +0100 +++ b/extra/soundsoftware/extract-javadoc.sh Thu Jun 09 16:49:58 2011 +0100 @@ -50,23 +50,31 @@ continue fi if [ "$prefix" != "$current_prefix" ]; then + echo "Package $package matches file path and has new prefix $prefix" if [ -n "$current_packages" ]; then echo "Running Javadoc for packages $current_packages from prefix $current_prefix" + echo "Command is: javadoc -sourcepath "$current_prefix" -d "$targetdir" -subpackages $current_packages" javadoc -sourcepath "$current_prefix" -d "$targetdir" -subpackages $current_packages fi current_prefix="$prefix" - current_packages= + current_packages="$package" else + echo "Package $package matches file path with same prefix as previous file" current_packages="$current_packages $package" fi done prefix=${prefix:=$projectdir} if [ -n "$current_packages" ]; then echo "Running Javadoc for packages $current_packages in prefix $current_prefix" + echo "Command is: javadoc -sourcepath "$current_prefix" -d "$targetdir" -subpackages $current_packages" javadoc -sourcepath "$current_prefix" -d "$targetdir" -subpackages $current_packages fi ) +if [ -f "$targetdir"/overview-tree.html ]; then + cp "$targetdir"/overview-tree.html "$targetdir"/index.html +fi + # for exit code: [ -f "$targetdir/index.html" ]