Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 95572 Details for
Bug 145750
Adding javadoc search function to a java eclass
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
A possible implementation for that function
javadoc-pkg.eclass (text/plain), 1.28 KB, created by
Iván Pérez Domínguez
on 2006-08-31 12:12:52 UTC
(
hide
)
Description:
A possible implementation for that function
Filename:
MIME Type:
Creator:
Iván Pérez Domínguez
Created:
2006-08-31 12:12:52 UTC
Size:
1.28 KB
patch
obsolete
># Copyright 1999-2006 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > ># ># Original Author: iperez <iperez@babel.ls.fi.upm.es> ># Purpose: Provides a function to find javadoc paths ># > ># ------------------------------------------------------------------------------ ># @ebuild-function java-pkg_getjavadoc ># ># Get the path of the javadoc documentation for a given package ># Returns -1 if no javadoc info is found ># Javadoc needs this in order to properly link files from different libraries ># ># Example: Get the path for JSAP javadoc documentation ># java-pkg_getjars ># Example Return: ># /usr/share/doc/JSAP-1.03a/doc/javadoc ># ># @param $1 - package to get the javadoc from ># ------------------------------------------------------------------------------ >javadoc-pkg_getjavadoc() { > debug-print-function ${FUNCNAME} $* > > [[ ${#} -ne 1 ]] && die "One and only one argument needed" > > local package_env=/usr/share/${1}/package.env > local javadoc_dir > > javadoc_dir=-1 > if [[ -r "${package_env}" ]]; then > exec 3<${package_env} > local LINE > while read LINE <&3 ; do > if [[ $LINE == JAVADOC_PATH* ]]; then > # Removing the JAVADOC_PATH=" part of the line > javadoc_dir=${LINE#*=\"} > javadoc_dir=${javadoc_dir/\"/} > fi; > done > fi > echo ${javadoc_dir} >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 145750
: 95572 |
207944
|
207945