aboutsummaryrefslogtreecommitdiff
path: root/buildScripts
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2019-03-25 21:26:09 +0100
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2019-03-25 21:26:09 +0100
commitec543dff8e91548b3533ab8510664fd26c898ae1 (patch)
treef0358c7f4fa98e6b7606b371803ee63c64de604e /buildScripts
parent732d3db79a781b30e6763167ad1baf05ffb9f125 (diff)
downloadlombok-ec543dff8e91548b3533ab8510664fd26c898ae1.tar.gz
lombok-ec543dff8e91548b3533ab8510664fd26c898ae1.tar.bz2
lombok-ec543dff8e91548b3533ab8510664fd26c898ae1.zip
[javadoc] new javadoc tools, new boneheaded mistakes. Seemingly nobody gives a toss about this tool over at oracle? Used some hacks to work around the worst offenses.
Diffstat (limited to 'buildScripts')
-rw-r--r--buildScripts/website.ant.xml25
1 files changed, 19 insertions, 6 deletions
diff --git a/buildScripts/website.ant.xml b/buildScripts/website.ant.xml
index 7fbd911e..62cb9a44 100644
--- a/buildScripts/website.ant.xml
+++ b/buildScripts/website.ant.xml
@@ -281,21 +281,21 @@ such as applying the templates to produce the website, converting the changelog
<property name="javadoc.overview.html" location="build/javadoc.overview.html" />
<echo file="${javadoc.overview.html}"><![CDATA[<html><body>
Welcome to the lombok javadoc.&nbsp;If you're just looking to learn more about using lombok
- You probably want to look at <a href="https://projectlombok.org/features/index.html">the feature documentation</a>.&nbsp;Otherwise,
+ You probably want to look at <a href="https://projectlombok.org/features/all">the feature documentation</a>.&nbsp;Otherwise,
check the <a href="lombok/package-summary.html">lombok</a> package.&nbsp;If you're trying to extend lombok or
write your own plugins, the other packages are what you're looking for.</body></html>
]]></echo>
- <javadoc sourcepath="src/core" defaultexcludes="yes" destdir="build/api" windowtitle="Lombok" Overview="${javadoc.overview.html}">
+ <javadoc sourcepath="src/core" defaultexcludes="yes" destdir="build/api" windowtitle="Lombok" source="1.8" Overview="${javadoc.overview.html}">
<package name="lombok" />
<package name="lombok.experimental" />
<package name="lombok.extern.*" />
<classpath refid="build.path" />
<classpath location="build/lombok" />
<header><![CDATA[<a href='https://projectlombok.org/' target='_blank'>Lombok</a> - ]]>v${lombok.version}</header>
- <bottom><![CDATA[<i>Copyright &copy; 2009-2018 The Project Lombok Authors, licensed under the <a href='http://www.opensource.org/licenses/mit-license.php' target='_blank'>MIT licence</a>.]]></bottom>
+ <bottom><![CDATA[<i>Copyright &copy; 2009-2019 The Project Lombok Authors, licensed under the <a href='http://www.opensource.org/licenses/mit-license.php' target='_blank'>MIT licence</a>.]]></bottom>
</javadoc>
<!-- bugfix for boneheaded javadoc bug where ?is-external=true is inserted before an anchor ref, breaking the anchor ref.
- is-external=true doesn't actually do anything, so, we'll just get rid of it. -->
+ is-external=true doesn't actually do anything except mess with titles, so, we'll just get rid of it. -->
<replaceregexp match="\?is-external=true#" replace="#" flags="gi">
<fileset dir="build/api" includes="**/*.html" />
</replaceregexp>
@@ -304,12 +304,25 @@ such as applying the templates to produce the website, converting the changelog
<fileset dir="build/api" includes="**/*.html" />
<filterchain>
<linecontainsregexp negate="true">
- <regexp pattern="(Generated by javadoc)|(.META NAME=.date.)" />
+ <regexp pattern="(Generated by javadoc)|(.META NAME=.date.)|(meta name=.dc.created.)" />
</linecontainsregexp>
</filterchain>
</copy>
<copy todir="doc/api">
- <fileset dir="build/api" excludes="**/*.html" />
+ <fileset dir="build/api" includes="**/*.css" />
+ <filterchain>
+ <linecontainsregexp negate="true">
+ <regexp pattern="@import.*dejavu.css.*" />
+ </linecontainsregexp>
+ </filterchain>
+ </copy>
+ <copy todir="doc/api">
+ <fileset dir="build/api">
+ <exclude name="**/*.html" />
+ <exclude name="**/*.css" />
+ </fileset>
</copy>
+ <echo append="true" file="doc/api/module-search-index.js"></echo>
+ <echo append="true" file="doc/api/tag-search-index.js"></echo>
</target>
</project>