Cross-link API documentation with JDK API documentation (if installed)

This commit is contained in:
Herve Quiroz 2005-11-24 18:07:40 +00:00
parent e17850c530
commit 6e220b3286
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=149320
2 changed files with 66 additions and 0 deletions

View file

@ -50,6 +50,11 @@ TOOLS_JARFILES= resolver.jar stylebook-1.0-b2.jar bin/xjavac.jar
CLASSPATH!= ${ECHO_CMD} ${TOOLS_JARFILES:S,^,tools/,} | ${TR} " " ":"
MAKE_ENV= CLASSPATH=${CLASSPATH}
JAVA_PORT_API= ${LOCALBASE}/share/doc/jdk${JAVA_PORT_VERSION:C/([0-9]\.[0-9])\.[0-9]/\1/}/api
.if exists(${JAVA_PORT_API})
MAKE_ARGS+= -Djdk.api="${JAVA_PORT_API}"
.endif
post-extract:
@cd ${WRKSRC} && ${MV} ../tools .

View file

@ -0,0 +1,61 @@
Allows to enforce a packagelistLoc for JDK API documentation
$FreeBSD$
--- build.xml.orig Thu Nov 24 16:57:51 2005
+++ build.xml Thu Nov 24 17:19:25 2005
@@ -402,7 +402,9 @@
windowtitle='XML Standard API' doctitle='XML Standard API'
bottom='${copyright}'
additionalparam='${additional.param}'
- />
+ >
+ <link offline="true" packagelistLoc="${jdk.api}" href="${jdk.api}"/>
+ </javadoc>
<mkdir dir='${build.dir}/docs/javadocs/xni'/>
<javadoc packagenames='org.apache.xerces.xni.*'
locale='en_US'
@@ -412,7 +414,9 @@
doctitle='Xerces Native Interface'
bottom='${copyright}'
additionalparam='${additional.param}'
- />
+ >
+ <link offline="true" packagelistLoc="${jdk.api}" href="${jdk.api}"/>
+ </javadoc>
<mkdir dir='${build.dir}/docs/javadocs/xs'/>
<javadoc packagenames='org.apache.xerces.xs, org.apache.xerces.xs.datatypes'
locale='en_US'
@@ -422,7 +426,9 @@
doctitle='XML Schema API'
bottom='${copyright}'
additionalparam='${additional.param}'
- />
+ >
+ <link offline="true" packagelistLoc="${jdk.api}" href="${jdk.api}"/>
+ </javadoc>
<mkdir dir='${build.dir}/docs/javadocs/xerces2'/>
<javadoc packagenames='org.apache.xerces.dom.*,
@@ -440,7 +446,9 @@
doctitle='Xerces2 Implementation'
bottom='${copyright}'
additionalparam='${additional.param}'
- />
+ >
+ <link offline="true" packagelistLoc="${jdk.api}" href="${jdk.api}"/>
+ </javadoc>
<mkdir dir='${build.dir}/docs/javadocs/other'/>
<javadoc packagenames='org.apache.html.*,
org.apache.wml.*,
@@ -451,7 +459,9 @@
windowtitle='Other Classes' doctitle='Other Classes'
bottom='${copyright}'
additionalparam='${additional.param}'
- />
+ >
+ <link offline="true" packagelistLoc="${jdk.api}" href="${jdk.api}"/>
+ </javadoc>
</target>
<!-- =================================================================== -->